diff --git a/examples/with-vuetify/nuxt.config.js b/examples/with-vuetify/nuxt.config.js index df74955493..a3b50d43bf 100644 --- a/examples/with-vuetify/nuxt.config.js +++ b/examples/with-vuetify/nuxt.config.js @@ -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