ERROR in static/js/vendor.758a0bb7b8bcf99a982f.js from UglifyJs

vue项目在编译的时候报错:
#npm run build
ERROR in static/js/vendor.758a0bb7b8bcf99a982f.js from UglifyJs_第1张图片

解决办法
\build\webpack.base.conf.js

{
        test: /\.js$/,
        loader: 'babel-loader',
        include: [
            resolve('src'),
            resolve('test'),
            resolve('/node_modules/[email protected]@element-ui/packages'),
            resolve('/node_modules/[email protected]@element-ui/src'),
            resolve('node_modules/bootstrap-vue/lib'),
            // resolve('/node_modules/element-ui/src'),
            // resolve('/node_modules/element-ui/packages'),
            // resolve('/node_modules/element-ui/src/mixins/emitter.js')
        ]
      },

你可能感兴趣的:(vue)