标签:空格 vue files tier The history formatter code reset
### 新建vue项目
npm install @vue/cli -g // 如果安装过脚手架,不必再次安装
vue create vision
手动选择一些特性 > Manually select features
------------------
空格选择一些插件
Check the features needed for your project:
( ) Choose Vue version
(*) Babel
( ) TypeScript
( ) Progressive Web App (PWA) Support
>(*) Router
(*) Vuex
(*) CSS Pre-processors
(*) Linter / Formatter
( ) Unit Testing
( ) E2E Testing
-------------------
是否使用历史模式的路由
? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n) n
------------------
css预处理
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default):
Sass/SCSS (with dart-sass)
Sass/SCSS (with node-sass)
> Less
Stylus
----------------------
标准eslint
? Pick a linter / formatter config:
ESLint with error prevention only
ESLint + Airbnb config
> ESLint + Standard config
ESLint + Prettier
----------------------
保存文件的时候提示
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>(*) Lint on save
( ) Lint and fix on commit
------------------
配置文件怎么处理--单独文件处理
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)
> In dedicated config files
In package.json
-----------------
以上的选择是否保存预设
Save this as a preset for future projects? (y/N) n
--------------------
npm run serve
标签:空格 vue files tier The history formatter code reset
原文地址:https://www.cnblogs.com/fdxjava/p/14387126.html