Skip to content

Commit 4448756

Browse files
authored
chore: make the styles build work properly on windows (#336)
1 parent b00ab52 commit 4448756

File tree

1 file changed

+1
-1
lines changed
  • packages/main/lib/postcss-css-to-esm

1 file changed

+1
-1
lines changed

packages/main/lib/postcss-css-to-esm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = postcss.plugin('add css to esm transform plugin', function (opt
88

99
return function (root) {
1010
const css = JSON.stringify(root.toString());
11-
const targetFile = root.source.input.from.replace("/src/", "/dist/");
11+
const targetFile = root.source.input.from.replace("/src/", "/dist/").replace("\\src\\", "\\dist\\");
1212

1313
mkdirp.sync(path.dirname(targetFile));
1414

0 commit comments

Comments
 (0)