-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Description
Upcoming Breaking Changes in beta.10
Node version requirement
As Node 8 becomes the latest LTS, vue-cli-service and all official plugins now also require a minimum Node version of 8.
Test plugin script/command rename
cli-plugin-unit-jestandcli-plugin-unit-mochanow registertest:unitcommand and script instead oftest;cli-plugin-e2e-cypressnow registertest:e2ewith optional--headlessflag instead of "e2e" and
e2e:open;cli-plugin-e2e-nightwatchnow registerstest:e2einstead ofe2e
Plugin commands and mode
PluginAPI.setMode() has been removed. Instead, for a plugin to sepcify the default mode for a registered command, the plugins should expose module.exports.defaultModes in the form of { [commandName]: mode }.
webpack 4 & vue-loader 15
We are planning to upgrade to webpack 4 + vue-loader 15 in beta.10. This will result in some breaking changes:
webpack
-
Plugins that are not compatible with webpack 4 will no longer be supported.
-
We will using webpack 4's
optimization.splitChunkswith default automatic strategy instead of currentCommonChunksPlugin. If you want to tweak the code splitting behavior you'll need to use webpack 4's new options.
CSS Configuration
-
cssoption will be removed, all CSS-related configurations should be done by tapping into the respective loaders usingchainWebpack. See how vue-loader 15 is different from previous versions -
CSS extraction will likely behave a bit differently as we will be moving to
mini-css-extract-plugin. More on this as we migrate.
Build
dlloption will be removed. Webpack 4 should provide good enough perf and the cost of maintaining DLL mode inside Vue CLI is no longer justified.