perf: disable source map to make compilation faster (#12484)

This commit is contained in:
neverland 2023-12-04 17:29:52 +08:00 committed by GitHub
parent ba0d2b7532
commit 3c3f96e268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,8 @@ export async function compileSite(isProd = false) {
},
output: {
assetPrefix,
// make compilation faster
disableSourceMap: true,
distPath: {
root: vantConfig.build?.site?.outputDir || SITE_DIST_DIR,
},