Skip to content

Commit

Permalink
fix: 修复配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Aug 9, 2022
1 parent 39079a8 commit 3b1d908
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/fighting-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
},
"homepage": "https://fighting.tianyuhao.cn",
"repository": "https://github.com/FightingDesign/fighting-design"
}
}
6 changes: 3 additions & 3 deletions vite.config.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default (): UserConfigExport => {
mode: 'production',
build: {
target: 'modules',
minify: false,
minify: true,
chunkSizeWarningLimit: 2,
reportCompressedSize: false,
outDir: resolve(__dirname, 'dist/lib'),
Expand All @@ -39,8 +39,8 @@ export default (): UserConfigExport => {
external: ['vue'],
preserveModules: true,
output: {
format: 'cjs',
preserveModules: true,
// format: 'cjs',
// preserveModules: true,
globals: {
vue: 'Vue'
}
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { UserConfigExport } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueSetupExtend from 'unplugin-vue-setup-extend-plus/vite'
import { resolve } from 'path'
import dts from 'vite-plugin-dts'
import dts from 'vite-plugin-dts' // https://github.com/qmhc/vite-plugin-dts

export default (): UserConfigExport => {
return {
Expand All @@ -24,7 +24,7 @@ export default (): UserConfigExport => {
mode: 'production',
build: {
target: 'modules',
minify: false, // 压缩
minify: true, // 压缩
chunkSizeWarningLimit: 2, // 超过 2kb 警告提示
reportCompressedSize: false,
outDir: resolve(__dirname, 'dist/es'),
Expand Down

0 comments on commit 3b1d908

Please sign in to comment.