Skip to content
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

Upgrade to Webpack 4 #434

Merged
merged 4 commits into from
Mar 11, 2018
Merged

Upgrade to Webpack 4 #434

merged 4 commits into from
Mar 11, 2018

Conversation

insin
Copy link
Owner

@insin insin commented Mar 10, 2018

PR for #409

insin added 4 commits March 12, 2018 01:43
- Node 4 is no longer supported
- package.json "engines" and babel-preset-env target are now Node 6.11.5,
  as per webpack
- The new mode option is now set to activate new webpack defaults
- Remove manual usage of plugins which are included by default per mode
  - ModuleConcatenationPlugin is auto in production mode
  - NamedModulesPlugin is auto in development mode
- Use optimization.noEmitOnErrors instead of NoEmitOnErrorsPlugin
- Use optimization.minimize/optimization.minimizer for UglifyJS
- Use optimization.runtimeChunk to create a 'runtime' bundle
- Use optimization.splitChunks to create a vendor bundle instead of
  CommonsChunkPlugin, which was removed
- Use the new .hooks plugin API for StatusPlugin and InlineRuntimePlugin
- Use MiniCssExtractPlugin instead of ExtractTextPlugin
  - Separate CSS files are now extracted for code splits
  - Replaced webpack.extractText config with webpack.extractCSS config -
    this is not backwards-compatible, as plugin options differ
- Update config for silencing newer versions of webpack-dev-middleware
- Removed webpack.hoisting config, as use of ModuleConcatenationPlugin is
  now controlled via optimization.concatenateModules
- Disable performance hints (for now)
- Add a temporary context workaround for loaders which haven't migrated
  yet
Webpack 4's new development mode defaults aren't suitable for publishing

Added the ability to disable uglification from build config
@insin insin merged commit c21d9e2 into master Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant