Skip to content

Commit

Permalink
fix: fix rename css fail in windows os
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Jan 22, 2024
1 parent 76e072b commit 3f33c57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ const setup = async () => {
let newPath;
if (output.endsWith('.css')) {
// <target>.es.css ---> style.css
newPath = oldPath.replace(
`dist/${target}.es.css`,
'dist/style.css',
);
newPath = oldPath.replace(`${target}.es.css`, 'style.css');
}
if (newPath && oldPath !== newPath) {
fs.renameSync(oldPath, newPath);
Expand Down

0 comments on commit 3f33c57

Please sign in to comment.