Skip to content

Commit

Permalink
chore: build script should not clean prev bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 22, 2023
1 parent 1e47dfc commit 955d716
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ async function buildBundles(cb) {

// Let it step by step since `style.css` is same name.
// Production should override it.
for (const config of configs) {
for (let i = 0; i < configs.length; i += 1) {
const config = configs[i]
if (i !== 0) {
config.build.emptyOutDir = false
}

await vite.build(config)
}

Expand Down

0 comments on commit 955d716

Please sign in to comment.