mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
fix: vite cache refreshing
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {defineConfig} from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
|
||||
export const hash = Math.floor(Math.random() * 90000) + 10000;
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
@@ -8,4 +9,13 @@ export default defineConfig({
|
||||
refresh: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: `[name]` + hash + `.js`,
|
||||
chunkFileNames: `[name]` + hash + `.js`,
|
||||
assetFileNames: `[name]` + hash + `.[ext]`
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user