From 3f33c571de2d5e0a54ec2abeadc3f13be12c84c2 Mon Sep 17 00:00:00 2001 From: F-star Date: Mon, 22 Jan 2024 09:49:55 +0800 Subject: [PATCH] fix: fix rename css fail in windows os --- scripts/dev.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/dev.js b/scripts/dev.js index 5e567130..b4033238 100644 --- a/scripts/dev.js +++ b/scripts/dev.js @@ -60,10 +60,7 @@ const setup = async () => { let newPath; if (output.endsWith('.css')) { // .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);