-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Bundle size becomes much bigger with Webpack 2 #2445
Comments
Seems like it ignores my |
I too had he similar issue with Webpack 2 where the size of bundle grew 3 times. Would be great to get this fixed. |
Do not use -d shortcut. It resets |
@wa-Nadoo @BlackSonic @ssbiswal1987 Does updating to webpack@2.1.0-beta.14 fix this issue. This will help us prioritize this issue. |
Closing due to inactivity. |
In an effort to not create another issue, I also wanted to note that my bundle size doubled after transitioning to Webpack 2.2.1. Any help/advice would be greatly appreciated! This is my
|
@ConAntonakos Can you open a separate issue with a link to a little project to study? Make sure you aren't bundling sourcemaps inline. You can also try webpack analyse tool to check out the output. |
I think I figured it out after additional testing. When I don't extract my CSS/SASS, it seems like it's included in my bundle now, and literally doubles the size. I did not know that. I tried extracting the CSS via |
@ConAntonakos It's not a problem for dev usage. Writing CSS inline is fine then. ExtractTextPlugin or extract-loader is handy for production, though, as you noticed. |
Hi, just wanted to share that I had this issue and did what @wa-Nadoo suggested and not use |
Hi @bebraw , I am getting into the initially reported issue. Below you can see the size of the bundle.js with version 1.13.3 and the new size of the bundle.js after upgrading to version 2.2.1.
I am also adding the upgraded webpack.config.js for reference as well:
Am I missing something during the upgrade steps that could affect the size of the bundle.js to increase almost 3 times? Best Regards, |
@vpachedzhi The only explanation I can think of is that source maps are getting inlined in your webpack 2 setup. Could it be that |
Yes, removing the Thanks @bebraw |
-d flag adds inline source map to your bundle. |
When running my build on the stable branch i get this
but when i upgrade to the latest beta the bundled file size and the number of modules becomes much more
The bundled application is here angular2-esnext-todomvc.
The text was updated successfully, but these errors were encountered: