mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-12 01:48:29 -06:00
37 lines
611 B
JavaScript
37 lines
611 B
JavaScript
const merge = require('deepmerge')
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
pluginOptions: {
|
|
apollo: {
|
|
enableMocks: false,
|
|
enableEngine: false
|
|
}
|
|
},
|
|
|
|
configureWebpack: {
|
|
resolve: {
|
|
symlinks: false
|
|
}
|
|
},
|
|
|
|
chainWebpack: config => {
|
|
config.module.rule('stylus').oneOf('vue').use('postcss-loader')
|
|
.tap(options =>
|
|
merge(options, {
|
|
config: {
|
|
path: path.resolve(__dirname, '.postcssrc')
|
|
}
|
|
})
|
|
)
|
|
},
|
|
|
|
css: {
|
|
loaderOptions: {
|
|
stylus: {
|
|
import: ['~@/style/imports']
|
|
}
|
|
}
|
|
}
|
|
}
|