We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce
$ vue init webpack test
Complete steps. (Using standalone build and npm.)
$ cd test $ npm install -S vue-pdf
Add import pdf from 'vue-pdf' to src/main.js
import pdf from 'vue-pdf'
src/main.js
Build with minimization enabled $ ./node_modules/.bin/webpack -p --config build/webpack.prod.conf.js
$ ./node_modules/.bin/webpack -p --config build/webpack.prod.conf.js
Observe UglifyJS error:
ERROR in static/js/app.820627baa05d51e0b5e2.js from UglifyJs Unexpected token: keyword (const) [static/js/app.820627baa05d51e0b5e2.js:19624,3]
The text was updated successfully, but these errors were encountered:
Can you try to switch from uglifyjs (uglify-es) to terser ? Terser has a better support of ES6+ and also has its webpack plugin
Sorry, something went wrong.
todavia tengo este error no se que hacer ayuda!!!
No branches or pull requests
Steps to reproduce
$ vue init webpack test
Complete steps. (Using standalone build and npm.)
Add
import pdf from 'vue-pdf'
to
src/main.js
Build with minimization enabled
$ ./node_modules/.bin/webpack -p --config build/webpack.prod.conf.js
Observe UglifyJS error:
ERROR in static/js/app.820627baa05d51e0b5e2.js from UglifyJs
Unexpected token: keyword (const) [static/js/app.820627baa05d51e0b5e2.js:19624,3]
The text was updated successfully, but these errors were encountered: