就是在 webpack.config.js 的配置中,抬头不再需要 const.path = require( 'path')
后面 plugin 里面需要的 path 也可以直接引用,不再需要 path.join( __dirname, '路径'),
直接 template: "./src/index.html",
后面 plugin 里面需要的 path 也可以直接引用,不再需要 path.join( __dirname, '路径'),
直接 template: "./src/index.html",