Skip to content

Commit

Permalink
fix: 修复hash问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Nov 16, 2023
1 parent 1e4299b commit 3880a2c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"vite": "^4.5.0",
"vite-plugin-inspect": "^0.7.42",
"vite-plugin-pwa": "^0.16.7",
"vite-plugin-webpackchunkname": "^0.2.4",
"vue-tsc": "^1.8.22",
"workbox-build": "^7.0.0",
"workbox-window": "^7.0.0"
Expand Down
55 changes: 55 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { presetUno, presetAttributify, presetIcons } from 'unocss'
import AutoImport from 'unplugin-auto-import/vite'
import Inspect from 'vite-plugin-inspect'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { manualChunksPlugin } from 'vite-plugin-webpackchunkname'

const iconClass = tools.map(item => item.icon).filter(item => item)

Expand Down Expand Up @@ -62,6 +63,7 @@ export default defineConfig({
]
}),
Components({
include: [/\.vue$/, /\.vue\?/],
dirs: ['src/components'],
extensions: ['vue'],
dts: './src/components.d.ts',
Expand Down Expand Up @@ -155,18 +157,12 @@ export default defineConfig({
}
}),
Sitemap({ tools, hostname: 'https://tools.iszy.xyz' }),
Inspect()
Inspect(),
manualChunksPlugin()
],
optimizeDeps: {
include: ['vue', 'element-plus', 'ant-design-vue']
},
build: {
rollupOptions: {
output: {
entryFileNames: 'assets/[name].js'
}
}
},
resolve: {
alias: {
'@': resolve('src')
Expand Down

0 comments on commit 3880a2c

Please sign in to comment.