examples: update vuetify to use vuetify loader (#4263)

[skip ci]
This commit is contained in:
Dmitry Molotkov 2018-11-08 01:43:02 +03:00 committed by Pooya Parsa
parent 2c26730b93
commit 83f8b1183c
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,5 @@
import VuetifyLoaderPlugin from 'vuetify-loader/lib/plugin'
export default {
/*
** Head elements
@ -14,7 +16,9 @@ export default {
},
build: {
extractCSS: true
plugins: [new VuetifyLoaderPlugin()],
extractCSS: true,
transpile: ['vuetify/lib']
},
/*
** Load Vuetify into the app

View File

@ -2,7 +2,8 @@
"name": "example-with-vuetify",
"dependencies": {
"nuxt-edge": "latest",
"vuetify": "latest"
"vuetify": "latest",
"vuetify-loader": "latest"
},
"scripts": {
"dev": "nuxt",

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import Vuetify from 'vuetify'
import Vuetify from 'vuetify/lib'
import colors from 'vuetify/es5/util/colors'
// You can also specify those components you are going to use for "a la carte" build: