Only copy the licence and readme on production builds

This commit is contained in:
Oliver-Akins 2025-05-31 10:05:00 -06:00
parent c23a656574
commit 79780e885b

View file

@ -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 {