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

41 lines
784 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
import path from 'path'
2018-03-09 10:01:06 +00:00
2018-03-16 19:52:17 +00:00
import vuxLoader from 'vux-loader'
2018-03-16 16:12:06 +00:00
export default {
2018-03-09 10:01:06 +00:00
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=0' }
]
},
css: [
'vux/src/styles/reset.less',
'vux/src/styles/1px.less'
],
plugins: [
{
src: '~/plugins/vux-plugins',
ssr: false
},
{
src: '~/plugins/vux-components',
ssr: true
}
],
build: {
extend (config, { isDev, isClient }) {
2018-03-09 10:01:06 +00:00
const configs = vuxLoader.merge(config, {
options: {
ssr: true
},
plugins: ['vux-ui', {
name: 'less-theme',
path: path.join(__dirname, './styles/theme.less')
}]
})
return configs
}
}
}