一:module的引入方式
之前引用的方式:
const CleanWebpackPlugin = require('clean-webpack-plugin'); new CleanWebpackPlugin(),
5 引用的方式
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); new CleanWebpackPlugin(),
相似的module:
- webpack-merge
二:命令
启动:
// <4 "scripts": { "serve": ""webpack-dev-server --open"" } // >5 "scripts": { "start": "webpack serve --config build/webpack.dev.js" },
记录进步每一天。