41 lines
802 B
JavaScript
41 lines
802 B
JavaScript
const webpack = require('webpack')
|
|
|
|
|
|
module.exports = {
|
|
build: {
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
'_': 'lodash'
|
|
})
|
|
]
|
|
},
|
|
css: [
|
|
'~/assets/main.scss'
|
|
],
|
|
env: {
|
|
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
|
|
},
|
|
head: {
|
|
link: [
|
|
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Montserrat:400,800'}
|
|
]
|
|
},
|
|
mode: 'spa',
|
|
modules: ['@nuxtjs/apollo'],
|
|
apollo: {
|
|
clientConfigs: {
|
|
default: {
|
|
httpEndpoint: process.env.NODE_ENV !== 'production' ? 'http://localhost:8000/api/graphql/' : '/api/graphql/',
|
|
httpLinkOptions: {
|
|
credentials: 'same-origin'
|
|
},
|
|
}
|
|
}
|
|
},
|
|
plugins: [
|
|
'~plugins/vue-axios',
|
|
'~plugins/vue-vimeo-player'
|
|
],
|
|
srcDir: 'src/'
|
|
}
|