From b8ce2b8bb6650225114340a1a1daa3892da0f1cb Mon Sep 17 00:00:00 2001 From: Aaron Choo Date: Wed, 9 Sep 2020 14:21:36 +0800 Subject: [PATCH] chore: delete dist/ only if generating prod release --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 143b104..70ffdfc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -22,7 +22,7 @@ export default [ }, plugins: [ // delete the /dist folder - del({ targets: "dist/*", runOnce: true }), + ...(isProd ? [del({ targets: "dist/*", runOnce: true })] : []), // copy essential KaTeX files from /node_modules to /src copy({ targets: [