Skip to content

Commit 476cba2

Browse files
committed
Fix log during build
1 parent befb5a9 commit 476cba2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

scripts/steps/compile-assets.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import wrap from '../lib/spinner.js'
77
import hash from '../lib/hash.js'
88

99
async function compileAssets() {
10-
await vite.build()
10+
await vite.build({
11+
logLevel: 'warn'
12+
})
1113

1214
let assets = await glob(join(DIST, '*'))
1315
let hashes = {}

vite.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default defineConfig({
77
root: SRC,
88
build: {
99
assetsInlineLimit: 0,
10-
outDir: DIST,
10+
emptyOutDir: true,
11+
outDir: DIST
1112
},
12-
plugins: [vitePluginPug()],
13+
plugins: [vitePluginPug()]
1314
})

0 commit comments

Comments
 (0)