Vue2学习笔记1

  • Post author:
  • Post category:vue




一、vue-cli创建工程:

npm install -g @vue/cli


1、vue create xxx

? Please pick a preset: Manually select features

? Check the features needed for your project: Babel, Router, Vuex, CSS Pre-proce

ssors, Linter

? Use history mode for router? (Requires proper server setup for index fallback

in production) Yes

? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported

by default): Sass/SCSS (with node-sass)

? Pick a linter / formatter config: Standard

? Pick additional lint features: (Press to select, to toggle all, <i

to invert selection)Lint on save

? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedica

ted config files

? Save this as a preset for future projects? No


2、vue ui


可视化创建目录,很直观

不过生成项目的时间有点长



版权声明:本文为qq_21918903原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。