mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
fix: vuetify includes es modules
This commit is contained in:
parent
b31b0f250c
commit
0558ae261e
@ -1,3 +1,5 @@
|
|||||||
|
const nodeExternals = require('webpack-node-externals')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/*
|
/*
|
||||||
** Head elements
|
** Head elements
|
||||||
@ -13,7 +15,16 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
build: {
|
build: {
|
||||||
vendor: ['vuetify'],
|
vendor: ['vuetify'],
|
||||||
extractCSS: true
|
extractCSS: true,
|
||||||
|
extend(config, ctx) {
|
||||||
|
if (ctx.isServer) {
|
||||||
|
config.externals = [
|
||||||
|
nodeExternals({
|
||||||
|
whitelist: [/^vuetify/]
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
** Load Vuetify into the app
|
** Load Vuetify into the app
|
||||||
|
Loading…
Reference in New Issue
Block a user