File tree Expand file tree Collapse file tree 1 file changed +36
-36
lines changed
Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -36,27 +36,27 @@ const production = false;
3636const cssUseList = [" style-loader" , " css-loader" ];
3737
3838if (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+ });
4949}
5050
5151module .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+ }
6060};
6161```
6262
@@ -100,23 +100,23 @@ More option: [https://github.com/jakubpawlowicz/clean-css#constructor-options](h
100100
101101``` js
102102module .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+ }
121121};
122122```
You can’t perform that action at this time.
0 commit comments