vite.config.ts 377 B

12345678910111213141516
  1. import { defineConfig } from 'vite'
  2. import { svelte } from '@sveltejs/vite-plugin-svelte'
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. plugins: [svelte()],
  6. build: {
  7. rollupOptions: {
  8. output: {
  9. entryFileNames: `assets/[name].js`,
  10. chunkFileNames: `assets/[name].js`,
  11. assetFileNames: `assets/[name].[ext]`
  12. }
  13. }
  14. }
  15. })