查詢指令
$ vue -V
$ yarn add vue-cli-plugin-pug --dev
package.json 要鎖版號
$ vue create YOUR_PROJECT_NAME
Vue CLI v4.3.1
? Please pick a preset:
Manually select features
? Check the features needed for your project:
Babel, Router, Vuex, CSS Pre-processors, 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):
Stylus
? Pick a linter / formatter config:
Standard
? Pick additional lint features:
Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.?
In dedicated config files