Before creating the initialization project, we need to create a new folder to store the project. If it is named, it will be called
vue-project, open this folder, enter cmd in the physical path location, open the terminal
vue create~~initialize the project
Execute the command: vue create hxx (note: the latter name is a custom name)
Use the up and down keys on the keyboard to select and select the features you need (up and down keys to move keys, whether the space bar is selected, a key to switch to select all, i key to reverse the selection options)
( ) Babel //
( ) Babel // supports higher-order syntax transformations
( ) TypeScript//Supports writing source code using TypeScript
() Progressive Web App (PWA) Support // 支持 PWA
( ) Router//Route
( ) Vuex // store
( ) CSS Pre-processors// CSS pre-processors
( ) Linter / Formatter // Code style checking and formatting
( ) Unit Testing //Support unit testing
( ) E2E Testing //Support E2E testing
Then press Enter, the following interface appears, select the version of vue
choice of route
Choice of Css Preprocessing
All feature configuration items, generate a configuration file
Initialize the build project
The following interface appears, indicating that the project was initialized and built successfully. Use the command below to start the project!
(1) Enter the project through the cd command!
(2) Then through the npm run serve command, start the project!
If you can't run it in the terminal, you can create a new terminal in vscode to open the folder to run