File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,36 @@ const path = require('path');
5
5
const CssImport = require ( 'postcss-import' )
6
6
const PresetEnv = require ( 'postcss-preset-env' ) ;
7
7
8
+ const plugins = [
9
+ { module : CssImport } ,
10
+ {
11
+ module : PresetEnv ,
12
+ options : {
13
+ stage : 3 ,
14
+ features : { 'nesting-rules' : true } ,
15
+ }
16
+ }
17
+ ] ;
18
+
8
19
module . exports = {
9
20
name : require ( './package' ) . name ,
10
21
11
22
options : {
12
23
postcssOptions : {
13
24
compile : {
14
25
enabled : true ,
15
- plugins : [
16
- { module : CssImport } ,
17
- {
18
- module : PresetEnv ,
19
- options : {
20
- stage : 3 ,
21
- features : { 'nesting-rules' : true } ,
22
- }
23
- }
24
- ]
26
+ plugins,
27
+ }
28
+ }
29
+ } ,
30
+
31
+ included : function ( app ) {
32
+ this . _super . included . apply ( this , arguments ) ;
33
+ app . options = app . options || { } ;
34
+ app . options . postcssOptions = {
35
+ compile : {
36
+ enabled : true ,
37
+ plugins,
25
38
}
26
39
}
27
40
} ,
You can’t perform that action at this time.
0 commit comments