Skip to content
Permalink
Browse files

fix(webpack): fix missing postcss in less/scss/styl processing

closes #1152
  • Loading branch information
3cp committed Oct 31, 2019
1 parent 17afc51 commit c246d66d257c137b4495d327d0963e3889a6eb8b
Showing with 4 additions and 5 deletions.
  1. +4 −5 skeleton/webpack/webpack.config.js
@@ -222,8 +222,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
issuer: [{ not: [{ test: /\.html$/i }] }],
use: extractCss ? [{
loader: MiniCssExtractPlugin.loader
},
'css-loader'
}, ...cssRules
] : ['style-loader', ...cssRules]
},
{
@@ -244,7 +243,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
},
{
test: /\.less$/i,
use: ['css-loader', 'less-loader'],
use: [...cssRules, 'less-loader'],
issuer: /\.html?$/i
},
// @endif
@@ -259,7 +258,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
},
{
test: /\.styl$/i,
use: ['css-loader', 'stylus-loader'],
use: [...cssRules, 'stylus-loader'],
issuer: /\.html?$/i
},
// @endif
@@ -274,7 +273,7 @@ module.exports = ({ production } = {}, {extractCss, analyze, tests, hmr, port, h
},
{
test: /\.scss$/,
use: ['css-loader', 'sass-loader'],
use: [...cssRules, ...sassRules],
issuer: /\.html?$/i
},
// @endif

0 comments on commit c246d66

Please sign in to comment.
You can’t perform that action at this time.