question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: beta.10, Upgrading to webpack 4 + vue-loader 15

See original GitHub issue

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-jest and cli-plugin-unit-mocha now register test:unit command and script instead of test;
  • cli-plugin-e2e-cypress now register test:e2e with optional --headless flag instead of “e2e” and e2e:open;
  • cli-plugin-e2e-nightwatch now registers test:e2e instead of e2e

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.splitChunks with default automatic strategy instead of current CommonChunksPlugin. If you want to tweak the code splitting behavior you’ll need to use webpack 4’s new options.

CSS Configuration

  • css option will be removed, all CSS-related configurations should be done by tapping into the respective loaders using chainWebpack. 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

  • dll option will be removed. Webpack 4 should provide good enough perf and the cost of maintaining DLL mode inside Vue CLI is no longer justified.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:101
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
Codermarcommented, May 8, 2018

Is there an ETA for this beta specifically and for the CLI final release in general?

2reactions
LinusBorgcommented, May 9, 2018

I propose to include #1248 in beta.10 it’s a breaking change since it requires to import the babel polyfill in main.js, but overall ensures a better dev exp.

Could make a PR if we decide so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from v14 - Vue Loader
We are in the process of upgrading Vue CLI 3 beta to use webpack 4 + Vue Loader v15, so you might want...
Read more >
vue-loader - Awesome JS
Features. apply js loaders to compiled template code when used with 2.7 (30464a8); compat for vue 2.7, support <script setup> (308715a); use script-analyzed ......
Read more >
@vue/compiler-sfc | Yarn - Package Manager
Leveraging the tool's plugin system for pre-processor handling. e.g. <style lang="scss"> should be processed by the corresponding webpack loader. In some cases, ...
Read more >
Changelog - Cypress Documentation
Upgraded the bundled electron version shipped with Cypress from 18.0.4 to 18.3.0 . ... Cypress 10 now includes beta support for component testing....
Read more >
Vue 3 Async Components and Bundle Splitting - Vue.js Course
Today we will explore the new Asynchronous Component API for Vue.js 3, ... is we will be using webpack 5 beta, which does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found