webpack.config.js下 引入 var htmlWebpackPlugin = require('html-webpack-plugin'); 编译就报错。注释掉就正常。 请大神帮忙看一看, 如下是报错信息。$ webpackF:\1223\mmail\doc\mmail-fe\node_modules\html-webpack-plugin\index.js:331 .then(([size, source]) => { ^SyntaxError: Unexpected token [ at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (F:\1223\mmail\doc\mmail-fe\webpack.config.js:3:26) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)
添加回答
举报
0/150
提交
取消