fix: vuetify includes es modules

This commit is contained in:
Clark Du 2017-11-28 11:27:17 +08:00 committed by Pooya Parsa
parent b31b0f250c
commit 0558ae261e

View File

@ -1,3 +1,5 @@
const nodeExternals = require('webpack-node-externals')
module.exports = {
/*
** Head elements
@ -13,7 +15,16 @@ module.exports = {
*/
build: {
vendor: ['vuetify'],
extractCSS: true
extractCSS: true,
extend(config, ctx) {
if (ctx.isServer) {
config.externals = [
nodeExternals({
whitelist: [/^vuetify/]
})
]
}
}
},
/*
** Load Vuetify into the app