vue create~~initialize the project

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, key to switch to select all, 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

image.png

Choice of Css Preprocessing

image.png

All feature configuration items, generate a configuration file

image.png

Initialize the build project

image.png

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

Guess you like

Origin blog.csdn.net/lolhuxiaotian/article/details/122035898