@@ -42,25 +42,22 @@ export default function style(self, stylingType) {
4242 self . dependencies . push (
4343 Loader . CSS ,
4444 ) ;
45- if ( self . isProf ) {
45+ if ( ! self . isProd ) {
4646 self . dependencies . push (
4747 Loader . STYLE ,
4848 ) ;
49+ ExtractUseProps . push (
50+ {
51+ loader : `"${ Loader . STYLE } "` ,
52+ } ,
53+ ) ;
4954 }
50-
5155 ExtractUseProps . push ( {
5256 loader : `"${ Loader . CSS } "` ,
5357 options : {
5458 sourceMap : true ,
5559 } ,
5660 } ) ;
57- if ( ! self . isProd ) {
58- ExtractUseProps . push (
59- {
60- loader : `"${ Loader . STYLE } "` ,
61- } ,
62- ) ;
63- }
6461 break ;
6562
6663 case StylingType . SASS :
@@ -71,12 +68,16 @@ export default function style(self, stylingType) {
7168 Loader . SASS ,
7269 Loader . CSS ,
7370 ) ;
74- if ( self . isProf ) {
71+ if ( ! self . isProd ) {
7572 self . dependencies . push (
7673 Loader . STYLE ,
7774 ) ;
75+ ExtractUseProps . push (
76+ {
77+ loader : `"${ Loader . STYLE } "` ,
78+ } ,
79+ ) ;
7880 }
79-
8081 ExtractUseProps . push (
8182 {
8283 loader : `"${ Loader . CSS } "` ,
@@ -91,13 +92,6 @@ export default function style(self, stylingType) {
9192 } ,
9293 } ,
9394 ) ;
94- if ( ! self . isProd ) {
95- ExtractUseProps . push (
96- {
97- loader : `"${ Loader . STYLE } "` ,
98- } ,
99- ) ;
100- }
10195 break ;
10296
10397 case StylingType . LESS :
@@ -108,12 +102,16 @@ export default function style(self, stylingType) {
108102 Loader . LESS ,
109103 Loader . CSS ,
110104 ) ;
111- if ( self . isProf ) {
105+ if ( ! self . isProd ) {
112106 self . dependencies . push (
113107 Loader . STYLE ,
114108 ) ;
109+ ExtractUseProps . push (
110+ {
111+ loader : `"${ Loader . STYLE } "` ,
112+ } ,
113+ ) ;
115114 }
116-
117115 ExtractUseProps . push (
118116 {
119117 loader : `"${ Loader . CSS } "` ,
@@ -128,13 +126,6 @@ export default function style(self, stylingType) {
128126 } ,
129127 } ,
130128 ) ;
131- if ( ! self . isProd ) {
132- ExtractUseProps . push (
133- {
134- loader : `"${ Loader . STYLE } "` ,
135- } ,
136- ) ;
137- }
138129 break ;
139130
140131 case StylingType . PostCSS :
@@ -153,12 +144,16 @@ export default function style(self, stylingType) {
153144 Loader . CSS ,
154145 Loader . POSTCSS ,
155146 ) ;
156- if ( self . isProf ) {
147+ if ( ! self . isProd ) {
157148 self . dependencies . push (
158149 Loader . STYLE ,
159150 ) ;
151+ ExtractUseProps . push (
152+ {
153+ loader : `"${ Loader . STYLE } "` ,
154+ } ,
155+ ) ;
160156 }
161-
162157 ExtractUseProps . push (
163158 {
164159 loader : `"${ Loader . CSS } "` ,
@@ -179,13 +174,6 @@ export default function style(self, stylingType) {
179174 } ,
180175 } ,
181176 ) ;
182- if ( ! self . isProd ) {
183- ExtractUseProps . push (
184- {
185- loader : `"${ Loader . STYLE } "` ,
186- } ,
187- ) ;
188- }
189177 break ;
190178 }
191179 return { ExtractUseProps, regExpForStyles } ;
0 commit comments