-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
40 lines (35 loc) · 889 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
parallel: false,
outputDir: 'docs',
publicPath: process.env.NODE_ENV === "production" ? "/we-do-chart/" : "/pub-wechart",
"devServer": {
"port": 8282
},
css: {
requireModuleExtension: true,
extract: true
},
chainWebpack: config => {
//const lintFixAuto = config.module.rule('eslint');
const sRule = config.module.rule('stylus');
//console.log("--------------->",lintFixAuto.uses);
sRule.uses.clear();
sRule
.test(/\.styl(us)?$/)
.oneOf('vue')
.resourceQuery(/vue/)
.use('stylus-loader')
.loader('stylus-loader')
.options( {stylusOptions: { sourceMap: false,preferPathResolver: 'webpack' }})
.end()
.end()
},
transpileDependencies: [
'vuetify'
],
// chainWebpack: config => {
// config.module.rule('eslint').use('eslint-loader').options({
// fix: true
// })
// }
}