Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit f70cc21

Browse files
Always use MiniCssExtractPlugin.loader to add stylesheets to html
style-loader inserts at a different place in head, changing behavior of style rules in build vs dist
1 parent 23cc7df commit f70cc21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (env, argv) => {
2424
rules: [
2525
{
2626
test: /\.css$/i,
27-
use: [argv.mode === "development" ? "style-loader" : MiniCssExtractPlugin.loader, "css-loader"],
27+
use: [MiniCssExtractPlugin.loader, "css-loader"],
2828
},
2929
{
3030
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,

0 commit comments

Comments
 (0)