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`;
|
outMode = `dev`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [];
|
||||||
copyFile(`LICENSE`, `LICENSE`),
|
|
||||||
copyFile(`README.md`, `README.md`),
|
|
||||||
];
|
|
||||||
|
|
||||||
if (isProd) {
|
if (isProd) {
|
||||||
plugins.push(
|
plugins.push(
|
||||||
|
copyFile(`LICENSE`, `LICENSE`),
|
||||||
|
copyFile(`README.md`, `README.md`),
|
||||||
buildPacks(),
|
buildPacks(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue