Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point to JS source for Import #1

Open
krismeister opened this issue Jun 13, 2017 · 1 comment
Open

Point to JS source for Import #1

krismeister opened this issue Jun 13, 2017 · 1 comment

Comments

@krismeister
Copy link

On Webpack I receive the following alert during build.

WARNING in ./~/angular-perfect-scrollbar-2/dist/index.js
Critical dependencies:
1:497-504 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/angular-perfect-scrollbar-2/dist/index.js 1:497-504

Its better to serve uncompressed assets, because if a project has similar dependancies as Angular Perfect Scrollbar 2, then those assets are only included once.

@krismeister krismeister changed the title Point to uncompressed JS for Import Point to JS source for Import Jun 13, 2017
@svbatalov
Copy link
Owner

I did not tried, but with webpack you may try to require/import angular-perfect-scrollbar/index instead. You will need css-loader or something like that installed and configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants