When using webpack to package the vue project, there is a problem
taoyuancun123 opened this issue · 3 comments
taoyuancun123 commented
- Operating System:
- Node Version:
- NPM Version:
- webpack Version:
- uglifyjs-webpack-plugin Version:
Expected Behavior
Actual Behavior
Code
// webpack.config.js
// If your code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
// additional code, HEY YO remove this block if you don't need it
How Do We Reproduce?
ERROR in main.3853bdb6421aac543ea9.js from UglifyJs
Unterminated string constant [main.3853bdb6421aac543ea9.js:527,17]
Child html-webpack-plugin for "..\index_prod.html":
1 asset
Entrypoint undefined = ../index_prod.html
Valerika commented
I have the same problem
ERROR in bundle.min.js from UglifyJs
Unterminated string constant [static-service-files/bundle.min.js:469,75528]
ERROR in bundle.min.js from Terser
Unterminated string constant [./node_modules/styled-components/dist/styled-components.browser.esm.js:359,48][static-service-files/bundle.min.js:469,75528]
taoyuancun123 commented
rvice-files/bundle.min.js:469,75528]
I reslove this by reinstall all the tools guide by offcial website(vuejs.org).
I think is some tools version wrong.
alexander-akait commented
Based on logs you have 2 minificator (uglify-js and terser) please double check you setup