-
Notifications
You must be signed in to change notification settings - Fork 12k
Webpack Benefits #2391
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
Comments
There are a lot of behind the scenes features that webpack brings to the table out of the box, that SystemJS + SystemBundler did not. It's really important to keep in mind the following: webpack: module bundler (static build tool) So the two aren't really the same thing, and serve different purposes (maybe in the future we [the webpack core team] will chose to have a stronger interop story between the two]) |
The highest benefit I can think of as of personal opinion is that you don´t have to keep track of what packages to add or remove in SystemJS, this is all done automatic because webpack uses the package.json information. You also have a lot of control over the way your application will be built, but most of that customization is simplified with angular-cli. |
No, it does not use package.json information. Webpack analyzes your JS code and searches for imports, then it bundles everything. Webpack 2 is also doing a tree shake, meaning it searches for classes and functions which are not used in your application in any way and removes them from bundle. |
@Auxx : Thank you for clarify that, when I changed to Webpack in my App I was sure I read somewhere that it was like that, but either way Webpack takes the burden off from managing those packages on my App. |
I see, that makes sense I have read somewhere that angular-cli decided to change to Webpack because SystemJS is still very new in its infancy and therefore not reliable. Is this true? Source: https://www.reddit.com/r/Angular2/comments/4lbdys/webpack_vs_systemjs_pros_cons/ |
As someone who is working on an old pre-webpack project, one of the main advantages of webpack is that it makes installing 3rd party libraries a whole lot easier. |
Perhaps the main reason is that the community wants Webpack, so Angular2 delivers Webpack? Source: https://www.reddit.com/r/Angular2/comments/4lbdys/webpack_vs_systemjs_pros_cons/ |
Most of the discussion around this topic is found on #909. |
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. |
Could someone elaborate on the benefits from switching from SystemJS to Webpack? The only benefit I can see so far is automatic detection and transpiling of
.css
and.scss
files, which is cool.P.S. What about JSPM?
The text was updated successfully, but these errors were encountered: