Skip to content

Release dev-toolkit v7 - Update to Webpack 4

Compare
Choose a tag to compare
@stoikerty stoikerty released this 06 Apr 13:57
· 15 commits to master since this release

With the update to v7 of dev-toolkit, the API for dev-toolkit.config has changed slightly.
The config key webpack.loaders has changed to webpack.rules.

See the with-sass template or the changes from the PR.

Updating to the latest version of dev-toolkit should be quite straightforward, unless you have a lot of webpack-plugins. We have updated webpack to v4 which brings a number of under-the-hood improvements. There are also some things one needs to be aware of, I've listed them below.


The vulnerabilities that snyk is reporting on have not gone away completely, but they should as far as I know not be anything to worry about in the case of regular usage of dev-toolkit as a tool. Snyk reports them as low vulnerabilities. They persist in the latest version of webpack (v4.5.0 right now) and it's impossible to make the warnings go away until the following issues have been resolved:
webpack/watchpack#63
fsevents/fsevents#187

If you are seeing warnings such as DeprecationWarning: Tapable.plugin is deprecated. then you should know that several plugins or settings still emit those warnings and are also nothing to worry about. For more information please see this PR:
webpack/webpack#6568