Vue project warm-up-project code (6-3)

Vue project warm-up-project code

Insert picture description here

  • README.md is the documentation for the project
  • package.json is the dependency package information of many projects are placed here
  • index.html is the template file for the homepage
  • .postcssrc.js does some configuration requirements
  • .gitignore This is a file for uploading git, you can add relevant information so that when uploading, other files will not be uploaded
  • .eslintrc.js When writing code, check whether it is written standard or not. Some specifications are configured in it, and the code must be written in accordance with the specifications inside.
  • .eslintignore can not be written in accordance with the specification in the following directory

/build/
/config/
/dist/
/*.js

  • .editorconfig helps us configure some syntax in the editor
  • .babelrc parser, do some grammatical transformations. Finally, it is converted into code that can be viewed by the browser.
  • static is the static resource
  • node_modules puts the dependency module package

src puts the source code of the entire project

Insert picture description here

  • main.js is the entry file of our entire project
  • App.vue is the original root component of our project
  • index.js is our routing file
  • HelloWorld.vue puts some small components of our project
  • assets are image resources

config puts some configuration files of our project

Insert picture description here
We put it in the index.js configuration file.
dev.env.js is the configuration file of the development environment.
prod.env.js is the configuration file for the production environment.

The build puts some files packaged by our project

Insert picture description here
For example, webpack.base.conf.js, webpack.dev.conf.js, webpack.prod.conf.js
are generally configured automatically.

When we actually develop, we generally don't need to modify much configuration, mainly modify the files in src.

Guess you like

Origin blog.csdn.net/weixin_45647118/article/details/114055457