Released soon Webpack 4.0 is said to be 68%-98% faster, and then support no profile, so it looks like a good look.
So try A
Separation of Webpack and WEBPACK-CLI
Now the Execute Webpack command must be WEBPACK-CLI the package global installation
As for why, there's not much to explain.
0 configuration What's the argument?
Supports two mode---development and production
Development The default entry file is src under the index.js, the export file is dist under the Main.js file
" Scripts " : { "start""webpack--mode development" },
So it's good to add this file in Package.json, no need to say another Webpack.config.json
Production mode does not explain
Parameters such as color watch process are still supported
So we set
" Scripts " : { "start""webpack--mode Development--watch--progress-- Colors" },
This allows you to listen for file changes and compile.
Tell compile, I try to compile a bit console.log (1) speed is nearly 0 faster than 28ms.
Let's try something specific.
Looks like it's a lot quicker than before.
So, no doubt, use it quickly.
Webpack 4.0 Early Adopters