Download Latest Version v3.0.2 source code.zip (396.8 kB) Google Add to Preferred Sources
Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2020-10-14 1.4 kB
Version 2.0.0 - webpack 5 upgrade source code.tar.gz 2020-10-14 355.7 kB
Version 2.0.0 - webpack 5 upgrade source code.zip 2020-10-14 357.8 kB
Totals: 3 Items   714.9 kB 0

webpack 5 compatibility upgrade.

Changed

  • Updated webpack to version 5
  • Removed cssnano, url-loader, file-loader, updated several other dependencies
  • Update webpack-dev-server to webpack serve
  • Update inline assets and resources to webpack 5 defaults

Note

You will see this error when building:

ebpack-boilerplate@2.0.0 build /Users/taniarascia/dev/sandbox/webpack-boilerplate
> cross-env NODE_ENV=production webpack --config config/webpack.prod.js

(node:34280) [DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated (use Compilation.hook.processAssets instead and use one of Compilation.PROCESS_ASSETS_STAGE_* as stage option)
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:34280) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
    Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
    Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.

This is from the HTML webpack plugin. See issue here: https://github.com/jantimon/html-webpack-plugin/issues/1501

Source: README.md, updated 2020-10-14