Nuxt/examples/with-vuetify/nuxt.config.js

35 lines
670 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
import nodeExternals from 'webpack-node-externals'
2017-11-28 03:27:17 +00:00
2018-03-16 16:12:06 +00:00
export default {
2017-06-19 23:04:23 +00:00
/*
** Head elements
** Add Roboto font and Material Icons
*/
head: {
link: [
2017-06-19 23:04:23 +00:00
{ rel: 'stylesheet', type: 'text/css', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' }
]
2017-06-19 23:04:23 +00:00
},
2018-03-11 21:28:56 +00:00
2017-06-19 23:04:23 +00:00
build: {
2017-11-28 03:27:17 +00:00
extractCSS: true,
extend(config, ctx) {
if (ctx.isServer) {
config.externals = [
nodeExternals({
whitelist: [/^vuetify/]
})
]
}
}
2017-06-19 23:04:23 +00:00
},
/*
** Load Vuetify into the app
*/
plugins: ['~/plugins/vuetify'],
2017-06-19 23:04:23 +00:00
/*
** Load Vuetify CSS globally
*/
css: ['~/assets/app.styl']
2017-03-14 20:13:39 +00:00
}