Answer the question
In order to leave comments, you need to log in
About the difference between vue-cli 2 and 3 - how to compile build?
win 10
npm-v 6.10.3,
"vuetify": "^2.0.0",
"@vue/cli": "^3.11.0"
package.json
{
"name": "ad-project",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^2.6.5",
"register-service-worker": "^1.6.2",
"vue": "^2.6.10",
"vue-router": "^3.0.3",
"vuetify": "^2.0.0",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-pwa": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"node-sass": "^4.9.0",
"sass": "^1.17.4",
"sass-loader": "^7.1.0",
"vue-cli-plugin-vuetify": "^0.6.3",
"vue-template-compiler": "^2.6.10",
"vuetify-loader": "^1.2.2"
}
}
vue init vuetifyjs/webpack add-project
$ vue create add-pro
$ cd add-pro
vue add-pro vuetify
Answer the question
In order to leave comments, you need to log in
In version 3, some of the options are available with the command vue create my-project
, some are available with the vue add vuetify
advanced option.
The webpack config can now be extended/modified via vue.config.js.
As for a-la-carte - Vuetify has its own loader, which automatically imports the necessary components when they are used in templates. Also very convenient.
Deploy from dist folder after build (npm run build).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question