stay Vue project
npm run build In the process , Burst out
CssSyntaxError unclosed bracket Error prompt for , A face of meng , How can a good project suddenly produce a single moth ？
The strange thing is that the project execution
npm run dev On command , Normal operation , and pro Version follows dev There is a gap in the version of
optimize-css-assets-webpack-plugin A reference to this document , So in
webpack.prod.conf.js Find the file reference in ：
First, comment out the reference of the above components , And then execute
npm run build,build success , And then it was very simple , Just go and have a look build well dist In the document app…css, And then continue to search for "//", So the workload is much less , Find the corresponding comment code , Then delete the unreasonable comment code .
webpack.prod.conf.js To restore the contents of the notes in , And then again build once , Problem solving .