I am trying to set up a development boilerplate which can also easily push a Vue.js project to NPM.
I am running into a problem with my webpack.prod.js
file, the error is:
ERROR in build.js from UglifyJs
Unexpected token: operator (>)
The code to uglify is:
// minify with dead-code elimination
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
This is my project and the exact file where it seems to go wrong:
https://github.com/stephan-v/vue-inline-svg/blob/master/webpack/webpack.prod.js
The project uses Babel to transpile to ES6 and Webpack to compile to UMD format when I run npm run production
. This command uses the webpack.prod.js
configuration.
I am probably not seeing something that could be fixed easily but I have no clue what is going wrong here.