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
Turn off Advanced Module Optimization in development #4716
Comments
@peterdotjs Not that I know of. Incidentally I got the same question from someone that is using SSR. Splits don't make sense on server-side so they should be flattened. I think Tobias will be able to answer this more fully. |
Thanks a lot for the quick response and in general all the work you both have put in to maintaining this project. I'll try those out. |
my webpack version 2.4.1
should i upgrade my webpack version to solve this problem ? |
problem still exists? with |
Closing due to inactivity also |
Do you want to request a feature or report a bug?
Feature Request
What is the current behavior?
In development when using
require.ensure
the incremental builds take ~8.5s. The majority of the time is during advanced module optimization. When removingrequire.ensure
the incremental builds go down to ~1.5s.If this is a feature request, what is motivation or use case for changing the behavior?
This would greatly speed up development time if we could turn off the optimization in development. A current workaround is to possibly use a generated version of our files with
require.ensure
removed. (https://github.com/knpwrs/babel-plugin-remove-webpack helped with this process) Idealy this is a switch that could be turned off/on from the webpack config. I doubt I am alone in needing this feature as many others are wanting to decrease incremental build times. If you this is something you think is reasonable and doable I'd gladly submit a PR if you point me in the right direction. Thanks!Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node Version: v6.9.4
Wepback Version: 2.2.0
OSX 10.12.2
The text was updated successfully, but these errors were encountered: