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

38 lines
750 B
JavaScript
Raw Normal View History

2017-11-28 03:27:17 +00:00
const nodeExternals = require('webpack-node-externals')
2017-03-14 20:13:39 +00:00
module.exports = {
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
},
/*
** Add Vuetify into vendor.bundle.js
*/
build: {
vendor: ['vuetify'],
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
}