Skip to content

Commit

Permalink
fix(webpack): fix missing postcss in less/scss/styl processing
Browse files Browse the repository at this point in the history
closes #1152
  • Loading branch information
3cp committed Nov 3, 2019
1 parent 17afc51 commit c246d66
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions skeleton/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
},
{
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c246d66

Please sign in to comment.