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');
55const CssImport = require ( 'postcss-import' )
66const PresetEnv = require ( 'postcss-preset-env' ) ;
77
8+ const plugins = [
9+ { module : CssImport } ,
10+ {
11+ module : PresetEnv ,
12+ options : {
13+ stage : 3 ,
14+ features : { 'nesting-rules' : true } ,
15+ }
16+ }
17+ ] ;
18+
819module . exports = {
920 name : require ( './package' ) . name ,
1021
1122 options : {
1223 postcssOptions : {
1324 compile : {
1425 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,
2538 }
2639 }
2740 } ,
You can’t perform that action at this time.
0 commit comments