Skip to content

Commit c246d66

Browse files
committed
fix(webpack): fix missing postcss in less/scss/styl processing
closes #1152
1 parent 17afc51 commit c246d66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

skeleton/webpack/webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
222222
issuer: [{ not: [{ test: /\.html$/i }] }],
223223
use: extractCss ? [{
224224
loader: MiniCssExtractPlugin.loader
225-
},
226-
'css-loader'
225+
}, ...cssRules
227226
] : ['style-loader', ...cssRules]
228227
},
229228
{
@@ -244,7 +243,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
244243
},
245244
{
246245
test: /\.less$/i,
247-
use: ['css-loader', 'less-loader'],
246+
use: [...cssRules, 'less-loader'],
248247
issuer: /\.html?$/i
249248
},
250249
// @endif
@@ -259,7 +258,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
259258
},
260259
{
261260
test: /\.styl$/i,
262-
use: ['css-loader', 'stylus-loader'],
261+
use: [...cssRules, 'stylus-loader'],
263262
issuer: /\.html?$/i
264263
},
265264
// @endif
@@ -274,7 +273,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
274273
},
275274
{
276275
test: /\.scss$/,
277-
use: ['css-loader', 'sass-loader'],
276+
use: [...cssRules, ...sassRules],
278277
issuer: /\.html?$/i
279278
},
280279
// @endif

0 commit comments

Comments
 (0)