Vue which files are important in the project, which can be removed

It's time to tell you what an important document, which is a Lu, so

Require routing configuration

index.js

Routing configuration file is index.js note the very beginning of this document in the Integrated Routing

Then the best place to start Integrated Routing can not write the name suffix, so pay attention to the file in this folder even different file types and do not use the same name, if the name is repeated may cause some unnecessary trouble, folders and do not duplicate names folder suffix have never had, so you can not write, but other file extension is recommended to write about.

Here you can then import alias

import 别名 from '资源'

views

A bit like the views we file it in django

This is also important hanging

App.vue

This file is just as important as the boys balls, although usually not used, but to use the time must be a critical time

HelloWorld.vue

This file can be deleted, just as the appendix

Guess you like

Origin www.cnblogs.com/jimGraymane/p/12070485.html