问答详情
源自:3-1 自动化生成项目中的html页面(上)

htmlWebpackPlugin 报错

SyntaxError: Unexpected token ;

    at createScript (vm.js:80:10)

    at Object.runInThisContext (vm.js:139:10)

    at Module._compile (module.js:599:28)

    at Object.Module._extensions..js (module.js:646:10)

    at Module.load (module.js:554:32)

    at tryModuleLoad (module.js:497:12)

    at Function.Module._load (module.js:489:3)

    at Module.require (module.js:579:17)

    at require (internal/module.js:11:18)

    at requireConfig (E:\vue\webpack-demo\node_modules\_webpack@3.8.1@webpack\bin\convert-argv.js:97:18)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! webpack-demo@1.0.0 webpack: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the webpack-demo@1.0.0 webpack script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-11-14T09_09_16_805Z-debug.log


提问者:qq_执迷不悔_23870314 2017-11-14 17:30

个回答