-
Notifications
You must be signed in to change notification settings - Fork 12k
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
In Angular-Cli WebPack scripts, i want to reordered the bundled scripts #3745
Comments
classList is accessed by the classie script which indicates that ordering is not the problem. It looks like you may need a classList polyfill. |
Dupe of #3782 |
See my answer in #3782 (comment). It might look like they aren't being loaded in the right order, but they actually are. I think @clydin's answer addresses the real issue. Also see #3309, if |
Oh, here's some info on a classList polyfill: https://angular.io/docs/ts/latest/guide/browser-support.html#!#classlist |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I working on Angular2 project. I used Angular-CLI to scaffold my angular app.
Angular-CLI by default use WebPack to handle a lot of things and one of this things is bundling the scripts.
I installed this package using npm: codrops-animated-header which required from me to include one script above the other, so in angular-cli.json i ordered them as needed (check the last 2 lines: I want to load classie.js before cbpAnimatedHeader.min.js):
but in the console i found this error:
and when i checked the bundle script i found that cbpAnimatedHeader.min.js comes before classie.js as shown below:
So, is it any way to reordered the bundled scripts in WebPack using Angular-cli or without it
The text was updated successfully, but these errors were encountered: