File tree 1 file changed +36
-36
lines changed 1 file changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -36,27 +36,27 @@ const production = false;
36
36
const cssUseList = [" style-loader" , " css-loader" ];
37
37
38
38
if (production) {
39
- cssUseList .push (" clean-css-loader" );
40
- // or with options
41
- cssUseList .push ({
42
- loader: " clean-css-loader" ,
43
- options: {
44
- compatibility: " ie9" ,
45
- level: 2 ,
46
- inline: [" remote" ]
47
- }
48
- });
39
+ cssUseList .push (" clean-css-loader" );
40
+ // or with options
41
+ cssUseList .push ({
42
+ loader: " clean-css-loader" ,
43
+ options: {
44
+ compatibility: " ie9" ,
45
+ level: 2 ,
46
+ inline: [" remote" ]
47
+ }
48
+ });
49
49
}
50
50
51
51
module .exports = {
52
- module: {
53
- rules: [
54
- {
55
- test: / \. css$ / ,
56
- use: cssUseList
57
- }
58
- ]
59
- }
52
+ module: {
53
+ rules: [
54
+ {
55
+ test: / \. css$ / ,
56
+ use: cssUseList
57
+ }
58
+ ]
59
+ }
60
60
};
61
61
```
62
62
@@ -100,23 +100,23 @@ More option: [https://github.com/jakubpawlowicz/clean-css#constructor-options](h
100
100
101
101
``` js
102
102
module .exports = {
103
- module: {
104
- loaders: [
105
- {
106
- test: / \. css$ / ,
107
- loader: " css!clean-css"
108
- },
109
- {
110
- test: / \. styl$ / ,
111
- loader: " css!clean-css!stylus?reslve url"
112
- }
113
- // ...
114
- ],
115
- // Example Set options (Key "clean-css" or cleancss or CleanCSS):
116
- " clean-css" : {
117
- debug: true ,
118
- mediaMerging: true
119
- }
120
- }
103
+ module: {
104
+ loaders: [
105
+ {
106
+ test: / \. css$ / ,
107
+ loader: " css!clean-css"
108
+ },
109
+ {
110
+ test: / \. styl$ / ,
111
+ loader: " css!clean-css!stylus?reslve url"
112
+ }
113
+ // ...
114
+ ],
115
+ // Example Set options (Key "clean-css" or cleancss or CleanCSS):
116
+ " clean-css" : {
117
+ debug: true ,
118
+ mediaMerging: true
119
+ }
120
+ }
121
121
};
122
122
```
You can’t perform that action at this time.
0 commit comments