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
SetBuildFileWebpack. base. conf. jsThe following code in the file is commented out (Eslint-loaderContent), and re-run.
Ii. error message: Newline required at end of file but not found
You only needJs CssJust add another line (empty rows ).
Or setBuildFileWebpack. base. conf. jsThe following code in the file is commented out (Eslint-loaderContent), and re-run.
3. Modify the default port number
Do not want to use the default port number (8080), You canConfigFileIndex. jsThe following code in the file is changed.
4. How to open the browser automatically
You canConfigFileIndex. jsThe following code in the file is changed.AutoOpenBrowserIsTrue
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.