File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed
packages/mars-build/src/scripts Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ options 配置请参考 [postcss-px2units](https://www.npmjs.com/package/postcss
88
88
#### ` preprocessors `
89
89
Type: ` {[name: string]: processor} `
90
90
91
- Type of ` processor ` : ` extnames: Array<lang> | config `
91
+ Type of ` processor ` : ` extnames: config `
92
92
93
93
Type of ` config ` : ` { extnames: Array<lang> [, options: Object, process: process | void]} `
94
94
@@ -132,10 +132,18 @@ module.exports = function (target) {
132
132
}
133
133
},
134
134
preprocessors: {
135
- less: [' less' ],
136
- sass: [' sass' , ' scss' ],
137
- stylus: [' stylus' , ' styl' ],
138
- typescript: [' ts' ]
135
+ less: {
136
+ extnames: [' less' ]
137
+ },
138
+ sass: {
139
+ extnames: [' sass' , ' scss' ]
140
+ },
141
+ stylus: {
142
+ extnames: [' stylus' , ' styl' ]
143
+ },
144
+ typescript: {
145
+ extnames: [' ts' ]
146
+ }
139
147
},
140
148
postprocessors: {
141
149
postcss: {
Original file line number Diff line number Diff line change @@ -21,10 +21,18 @@ module.exports = function (merge, target) {
21
21
}
22
22
} ,
23
23
preprocessors : {
24
- less : [ 'less' ] ,
25
- sass : [ 'sass' , 'scss' ] ,
26
- stylus : [ 'stylus' , 'styl' ] ,
27
- typescript : [ 'ts' ]
24
+ less : {
25
+ extnames : [ 'less' ]
26
+ } ,
27
+ sass : {
28
+ extnames : [ 'sass' , 'scss' ]
29
+ } ,
30
+ stylus : {
31
+ extnames : [ 'stylus' , 'styl' ]
32
+ } ,
33
+ typescript : {
34
+ extnames : [ 'ts' ]
35
+ }
28
36
} ,
29
37
postprocessors : {
30
38
postcss : {
You can’t perform that action at this time.
0 commit comments