-
Notifications
You must be signed in to change notification settings - Fork 213
Update to webpack 4 #737
Comments
👏 That sounds like a great plan! |
I haven't checked all the deps yet, but one that is definitely not ready yet is: |
The future is https://github.com/webpack-contrib/mini-css-extract-plugin |
These two are now done (8.2.0 just published), so barring any objections I'll start merging breaking changes into master (with master now being treated as 9 alpha). |
I've started working on this locally. Changes so far:
Left to do:
|
@eliperelman, what are your thoughts on how Neutrino should handle the new
|
Oh and I guess we need to warn people against continuing to use the
I'm leaning towards the fail early option. |
This first option sounds like the right way, even though it can lead to duplication. So each high-level project preset would need to set it:
I think those are the only ones where we would need to set it.
Are there any valid use cases where |
What I am really trying to avoid with this approach is the need for the CLI/API to add its own middleware. |
There's now PR #809 open to update Neutrino to webpack 4 - if anyone subscribed to this issue has 20 minutes to try it out, the feedback would be really useful :-) |
Notable changes: * Major version updates of `webpack`, `webpack-dev-server` and `optimize-css-assets-webpack-plugin` * Uses the new webpack 4 `mode` option * Removed `@neutrinojs/chunk` in favour of the `splitChunks` feature * Removed `@neutrinojs/babel-minify` in favour of the faster `uglify-es` * Removed redundant `ModuleConcatenationPlugin` usage * Removed default of `NODE_ENV` from `@neutrinojs/env` * Replaced `extract-text-webpack-plugin` with `mini-css-extract-plugin` * Stopped pinning `webpack-sources` to v1.0.1 * Added checks to warn about changed web preset `minify` options * Added checks to enforce that users remove any legacy `vendor` entrypoints For more details on the webpack changes, see: https://github.com/webpack/webpack/releases/tag/v4.0.0 Fixes #737. Fixes #802. Closes #748. Closes #768. Closes #769. Closes #766.
Webpack 4 has now been released. Whilst their docs have not yet been updated (eg webpack/webpack.js.org#1856 and friends) - it would be good to start looking at what we need to do to support webpack 4 soon.
I propose something like:
release/v8
branch is updatedmaster
to be Neutrino 9 dev/alpha/whatever, making it ok for breaking changes (we can still ship urgent Neutrino 8.x bugfix releases later, but from the release branch)Anything I've missed? :-)
The text was updated successfully, but these errors were encountered: