mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
35 lines
670 B
JavaScript
35 lines
670 B
JavaScript
import nodeExternals from 'webpack-node-externals'
|
|
|
|
export default {
|
|
/*
|
|
** Head elements
|
|
** Add Roboto font and Material Icons
|
|
*/
|
|
head: {
|
|
link: [
|
|
{ rel: 'stylesheet', type: 'text/css', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' }
|
|
]
|
|
},
|
|
|
|
build: {
|
|
extractCSS: true,
|
|
extend(config, ctx) {
|
|
if (ctx.isServer) {
|
|
config.externals = [
|
|
nodeExternals({
|
|
whitelist: [/^vuetify/]
|
|
})
|
|
]
|
|
}
|
|
}
|
|
},
|
|
/*
|
|
** Load Vuetify into the app
|
|
*/
|
|
plugins: ['~/plugins/vuetify'],
|
|
/*
|
|
** Load Vuetify CSS globally
|
|
*/
|
|
css: ['~/assets/app.styl']
|
|
}
|