Describes the problems and solutions for vue-cli to quickly build a single-page application, and describes vue-cli
I. The error message is similar to: Expected indentation of 0 spaces but found 4
SetBuild
FileWebpack. base. conf. js
The following code in the file is commented out (Eslint-loader
Content), and re-run.
Ii. error message: Newline required at end of file but not found
You only needJs
Css
Just add another line (empty rows ).
Or setBuild
FileWebpack. base. conf. js
The following code in the file is commented out (Eslint-loader
Content), and re-run.
3. Modify the default port number
Do not want to use the default port number (8080
), You canConfig
FileIndex. js
The following code in the file is changed.
4. How to open the browser automatically
You canConfig
FileIndex. js
The following code in the file is changed.AutoOpenBrowser
IsTrue
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.