Skip to content

Commit

Permalink
fix: pnpm style-loader path
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed May 24, 2022
1 parent 88acf4d commit 0a64a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function disableCSSExtraction(config) {
if (x.use && Array.isArray(x.use)) {
x.use.forEach((use) => {
if (use.loader && use.loader.includes("mini-css-extract-plugin")) {
use.loader = "style-loader/dist/cjs.js";
use.loader = require.resolve("style-loader/dist/cjs.js");
delete use.options;
}
});
Expand Down

0 comments on commit 0a64a99

Please sign in to comment.