Skip to content

Commit

Permalink
perf: disable source map to make compilation faster (youzan#12484)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored and CatsAndMice committed Apr 8, 2024
1 parent 7736619 commit c46335b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vant-cli/src/compiler/compile-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit c46335b

Please sign in to comment.