vue- use Scaffolding project

With command line tools (win + R open cmd)

1, into the desktop, create vue project, (vue-app vue is the project name)

2, select the preset first is the system default. Alternatively the second Manually select features (manual setting)

3, select Bablel (the code conversion function is, for ES6 converted into the ES5)

4, in which the set?

The first is to put those files separately a file, the second is all on package.json file, select package.json

5. To save the preset to the next project? You can choose to save

6, to preset a name, such as onlyBabel

7, and then press enter vue-app step further npm run serve

8, a path will be run to completion, you can access locally

Vue-app will be created on the desktop into viscode, the following documents

①node_modules put some dependent package files

②public equivalent home folder path displayed page is the html file public folder

③src folder is often used in the work folder

Wherein main.js js file index.html is introduced, the main entry file

Wherein App.vue component is used in the component is used in main.js render function

In the scaffolding can write jsx grammar

You can also add a click event -> on-click

Benefits can be replaced with labels, more convenient

④ component on the components folder

⑤assets put static resources, such as public style, images and the like

 

Can be found vuerc modify the default file in the user folder to be modified,

Prests the contents of the line are deleted

Guess you like

Origin www.cnblogs.com/tianya-guoke/p/11484744.html