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);