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
|
|
|
|
*/
|
2017-03-19 07:17:32 +00:00
|
|
|
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-03-19 07:17:32 +00:00
|
|
|
]
|
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
|
|
|
|
*/
|
2017-08-04 08:59:42 +00:00
|
|
|
plugins: ['~/plugins/vuetify'],
|
2017-06-19 23:04:23 +00:00
|
|
|
/*
|
|
|
|
** Load Vuetify CSS globally
|
|
|
|
*/
|
2017-08-04 08:59:42 +00:00
|
|
|
css: ['~/assets/app.styl']
|
2017-03-14 20:13:39 +00:00
|
|
|
}
|