Only copy the licence and readme on production builds
This commit is contained in:
parent
c23a656574
commit
79780e885b
1 changed files with 3 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue