vue+element-ui开发,项目能正常启动,打包报错
from UglifyJs
Unexpected token: punc (() [./~/element-ui/packages/row/src/row.js:24,0]
解决办法:
找到项目下的build/webpack.base.conf.js文件,添加代码resolve('node_modules/element-ui/packages/row/src/row.js')
如图:
vue+element-ui开发,项目能正常启动,打包报错
from UglifyJs
Unexpected token: punc (() [./~/element-ui/packages/row/src/row.js:24,0]
解决办法:
找到项目下的build/webpack.base.conf.js文件,添加代码resolve('node_modules/element-ui/packages/row/src/row.js')
如图:
本文标题:vue打包报错Unexpected token: punc ((
本文链接:https://www.haomeiwen.com/subject/zebwlftx.html
网友评论