mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(examples): routify rmdir bug
This commit is contained in:
parent
a9e63e0038
commit
ef98af0f90
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export function createRollupConfigs(config) {
|
|||
const { production, serve, distDir } = config;
|
||||
const useDynamicImports = process.env.BUNDLING === "dynamic" || !!production;
|
||||
|
||||
fs.rmdirSync(distDir, { recursive: true });
|
||||
if (fs.existsSync(distDir)) fs.rmdirSync(distDir, { recursive: true });
|
||||
|
||||
if (serve) spassr({ serveSpa: true, serveSsr: true, silent: false });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue