Skip to content

Commit

Permalink
Merge pull request #128 from AnsGoo/dev-lib
Browse files Browse the repository at this point in the history
feature: 优化了打包策略
  • Loading branch information
AnsGoo authored May 8, 2024
2 parents 6f39701 + 1caf7c9 commit 27e504a
Show file tree
Hide file tree
Showing 2 changed files with 492 additions and 466 deletions.
4 changes: 4 additions & 0 deletions examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default ({ mode, command }: ConfigEnv): UserConfigExport => {
// 使用路径别名时想要省略的后缀名,官方不建议将.vue文件省略后缀
extensions: ['.ts', '.tsx', '.js', '.m.js']
},
optimizeDeps: {
holdUntilCrawlEnd: false
},
server: {
// 是否开启 https
port: Number(VITE_APP_PORT),
Expand All @@ -74,6 +77,7 @@ export default ({ mode, command }: ConfigEnv): UserConfigExport => {
}
},
css: {
preprocessorMaxWorkers: true,
preprocessorOptions: {
less: {
math: 'always',
Expand Down
Loading

0 comments on commit 27e504a

Please sign in to comment.