Skip to content
This repository was archived by the owner on Oct 16, 2021. It is now read-only.

Commit 4990030

Browse files
committed
refactor: use MiniCssExtractPlugin.loader also in dev mode
Using style-loader was just a temporary workaround until webpack-contrib/mini-css-extract-plugin#23 was fixed.
1 parent e6eec3f commit 4990030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/build/webpack/config.module.rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const rules = [
2525
{
2626
test: /\.scss$/,
2727
use: [
28-
(isDevMode() ? 'style-loader' : MiniCssExtractPlugin.loader),
28+
(MiniCssExtractPlugin.loader),
2929
{loader: 'css-loader', options: {sourceMap: isDevMode()}},
3030
{
3131
loader: 'postcss-loader', options:

0 commit comments

Comments
 (0)