@@ -42,25 +42,22 @@ export default function style(self, stylingType) {
42
42
self . dependencies . push (
43
43
Loader . CSS ,
44
44
) ;
45
- if ( self . isProf ) {
45
+ if ( ! self . isProd ) {
46
46
self . dependencies . push (
47
47
Loader . STYLE ,
48
48
) ;
49
+ ExtractUseProps . push (
50
+ {
51
+ loader : `"${ Loader . STYLE } "` ,
52
+ } ,
53
+ ) ;
49
54
}
50
-
51
55
ExtractUseProps . push ( {
52
56
loader : `"${ Loader . CSS } "` ,
53
57
options : {
54
58
sourceMap : true ,
55
59
} ,
56
60
} ) ;
57
- if ( ! self . isProd ) {
58
- ExtractUseProps . push (
59
- {
60
- loader : `"${ Loader . STYLE } "` ,
61
- } ,
62
- ) ;
63
- }
64
61
break ;
65
62
66
63
case StylingType . SASS :
@@ -71,12 +68,16 @@ export default function style(self, stylingType) {
71
68
Loader . SASS ,
72
69
Loader . CSS ,
73
70
) ;
74
- if ( self . isProf ) {
71
+ if ( ! self . isProd ) {
75
72
self . dependencies . push (
76
73
Loader . STYLE ,
77
74
) ;
75
+ ExtractUseProps . push (
76
+ {
77
+ loader : `"${ Loader . STYLE } "` ,
78
+ } ,
79
+ ) ;
78
80
}
79
-
80
81
ExtractUseProps . push (
81
82
{
82
83
loader : `"${ Loader . CSS } "` ,
@@ -91,13 +92,6 @@ export default function style(self, stylingType) {
91
92
} ,
92
93
} ,
93
94
) ;
94
- if ( ! self . isProd ) {
95
- ExtractUseProps . push (
96
- {
97
- loader : `"${ Loader . STYLE } "` ,
98
- } ,
99
- ) ;
100
- }
101
95
break ;
102
96
103
97
case StylingType . LESS :
@@ -108,12 +102,16 @@ export default function style(self, stylingType) {
108
102
Loader . LESS ,
109
103
Loader . CSS ,
110
104
) ;
111
- if ( self . isProf ) {
105
+ if ( ! self . isProd ) {
112
106
self . dependencies . push (
113
107
Loader . STYLE ,
114
108
) ;
109
+ ExtractUseProps . push (
110
+ {
111
+ loader : `"${ Loader . STYLE } "` ,
112
+ } ,
113
+ ) ;
115
114
}
116
-
117
115
ExtractUseProps . push (
118
116
{
119
117
loader : `"${ Loader . CSS } "` ,
@@ -128,13 +126,6 @@ export default function style(self, stylingType) {
128
126
} ,
129
127
} ,
130
128
) ;
131
- if ( ! self . isProd ) {
132
- ExtractUseProps . push (
133
- {
134
- loader : `"${ Loader . STYLE } "` ,
135
- } ,
136
- ) ;
137
- }
138
129
break ;
139
130
140
131
case StylingType . PostCSS :
@@ -153,12 +144,16 @@ export default function style(self, stylingType) {
153
144
Loader . CSS ,
154
145
Loader . POSTCSS ,
155
146
) ;
156
- if ( self . isProf ) {
147
+ if ( ! self . isProd ) {
157
148
self . dependencies . push (
158
149
Loader . STYLE ,
159
150
) ;
151
+ ExtractUseProps . push (
152
+ {
153
+ loader : `"${ Loader . STYLE } "` ,
154
+ } ,
155
+ ) ;
160
156
}
161
-
162
157
ExtractUseProps . push (
163
158
{
164
159
loader : `"${ Loader . CSS } "` ,
@@ -179,13 +174,6 @@ export default function style(self, stylingType) {
179
174
} ,
180
175
} ,
181
176
) ;
182
- if ( ! self . isProd ) {
183
- ExtractUseProps . push (
184
- {
185
- loader : `"${ Loader . STYLE } "` ,
186
- } ,
187
- ) ;
188
- }
189
177
break ;
190
178
}
191
179
return { ExtractUseProps, regExpForStyles } ;
0 commit comments