diff --git a/vite.config.js b/vite.config.js index 9954b2b..ada9881 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,7 +8,7 @@ import { VitePWA } from 'vite-plugin-pwa' // https://vitejs.dev/config/ export default defineConfig({ - base: '/e-hr/', + base: './', plugins: [ vue({ template: { transformAssetUrls }, @@ -38,8 +38,14 @@ export default defineConfig({ }, }, build: { - target: 'esnext', assetsDir: 'assets', + rollupOptions: { + output: { + entryFileNames: 'assets/[name]-[hash].js', + chunkFileNames: 'assets/[name]-[hash].js', + assetFileNames: 'assets/[name]-[hash][extname]', + }, + }, }, server: { port: 3002,