Closed GabrielGil closed 6 years ago
x
- [ x ] bug report - [ ] feature request
browser: N/A browser version: N/A operating system: MacOS 10.14 webpack version: 4.20
Building the app with the new optimization configuration does not work properly with this plugin. I am using Babel 8 in the rest of the app with no problems.
{ optimization: { minimizer: [ new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: true, }) ], }, }
Not to crash :P
ERROR in sw.js from UglifyJs Unexpected token: keyword (const) [./app/sw.js:4,0][sw.js:94,0] npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! octavo-store@0.1.0 build: `webpack --config webpack.prod.js`
Problem solved (by paying attention to release notes :P ): UglifyJS does not support ES6 anymore from 2.0 as per the release notes. https://github.com/webpack-contrib/uglifyjs-webpack-plugin/releases/tag/v2.0.0
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
Building the app with the new optimization configuration does not work properly with this plugin. I am using Babel 8 in the rest of the app with no problems.
Desired or expected functionality
Not to crash :P
Mention any other details that might be useful.