Skip to content

Commit

Permalink
Refactor svelte.config.js to prevent hashing of asset files
Browse files Browse the repository at this point in the history
  • Loading branch information
lewdry committed Oct 25, 2024
1 parent 1634b67 commit 23eeae7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions my-svelte-app/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
}

kit: {
vite: {
build: {
rollupOptions: {
output: {
assetFileNames: '[name][extname]' // Prevent hashing of asset files
}
}
}
}
}
};

0 comments on commit 23eeae7

Please sign in to comment.