SyntaxError: Unexpected identifier为什么报错
来源:3-5 webpack对脚本和样式的处理
慕粉3921239
2018-11-24
webpack ./src/page/index/index.js ./dist/app.js
C:\Users\Administrator\mmall1\doc\mmall-fe1\webpack.config.js:7
output:{
^^^^^^
SyntaxError: Unexpected identifier
at new Script (vm.js:83:7)
at createScript (vm.js:267:10)
at Object.runInThisContext (vm.js:319:10)
at Module._compile (internal/modules/cjs/loader.js:685:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:22:18)
1回答
-
Rosen
2018-11-25
语法错误,是不是output上一行少了逗号?
00
相似问题