Vue-cli: Do we have plan for webpack4?

Created on 14 Feb 2018  ·  12Comments  ·  Source: vuejs/vue-cli

What problem does this feature solve?

Webpack 4 beta is release and probably release in same time with vue-cli 3.0. Do we should upgrade Webpack to Webpack 4?

What does the proposed API look like?

We have to remove CommonsChunkPlugin and change to optimization.splitChunks for breaking change

Most helpful comment

Closing since the answer is yes - will open a separate tracking issue when we try to finalize it.

All 12 comments

We are closely coordinating with the webpack team. We will upgrade to qwebpack 4 when it's released and stable enough, and when all necessary loaders and plugins are as well.

Should we try to upgrade vue-cli 3.0 to webpack4 before they release?. When webpack4 release we will no need to change again

I don't think so. Webpack is still In alpha, and we don't want to develop cli3 on an unstable software - that would mean we develop against a moving target.

Since we are closely monitoring the development and the webpack team is keeping us informed about things we will have to change, it will be quite easy to upgrade after webpack4 is released.

Adding to that, we probably want to wait a few weeks until webpack4 has fixed any immediate bugs, which will emerge after such a big release.

webpack4 has released beta2.
Do we have plan for babel7?

We already use babel7

We noticed. We will however take out time to include this, for one to test it, and also because the docs for 4 are not existant yet.

Note: Since we use webpack-chain to build the core's webpack config, we should check out if there are any compatibility issues with webpack 4.

So far I'm aware of some new config options, which are not a problem. Changes in Syntax (if those exist!) for existing things might require some workarounds until webpack-chain has catched up.

Let's me try to update in my brach will update you soon

html-webpack-plugin still have problem with webpack 4

Closing since the answer is yes - will open a separate tracking issue when we try to finalize it.

@thangman22 pug-loader too

Was this page helpful?
0 / 5 - 0 ratings