Use predictable file names

This commit is contained in:
Rodolphe Bréard 2023-07-29 12:03:53 +02:00
parent 87b4d1a40a
commit 451dc8a3c4

View file

@ -5,12 +5,21 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
vue(), vue(),
], ],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
} }
} },
build: {
// https://rollupjs.org/configuration-options/
rollupOptions: {
output: {
entryFileNames: 'assets/[name].js',
assetFileNames: 'assets/sake.min[extname]',
}
}
}
}) })