ERROR in server-bundle.js from UglifyJs
SyntaxError: Unexpected token punc 芦)禄, expected punc 芦(禄 [server-bundle.js:194,13]
Webpack build exited with errors
error Command failed with exit code 1.
nuxt.config.js
:
build: {
extend (config, { dev }) {
if (!dev) {
config.devtool = false
config.plugins.push(
new webpack.optimize.UglifyJsPlugin({
parse: {
strict: true
},
compress: {
unsafe: true,
warnings: false,
drop_console: true
},
output: {
comments: false,
ascii_only: true,
inline_script: true
},
mangle: true
})
)
}
}
}
How to fix it ? :(
build: {
extend(config, { isDev, isClient }) {
if (! isDev) {
if (! isClient) {
// Plugins that you want to be applied in the server side code.
}
}
},
}
Could be relationated #250
@maicong this is probably due to a external library you are using that fails on the minify or an error in your code.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Could be relationated #250