From 79780e885b88256c457511ff9aafac3400ea0b18 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 31 May 2025 10:05:00 -0600 Subject: [PATCH] Only copy the licence and readme on production builds --- vite.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index b6ef53f..da6d7ca 100644 --- a/vite.config.js +++ b/vite.config.js @@ -98,13 +98,12 @@ export default defineConfig(({ mode }) => { outMode = `dev`; }; - const plugins = [ - copyFile(`LICENSE`, `LICENSE`), - copyFile(`README.md`, `README.md`), - ]; + const plugins = []; if (isProd) { plugins.push( + copyFile(`LICENSE`, `LICENSE`), + copyFile(`README.md`, `README.md`), buildPacks(), ); } else {