From 451dc8a3c46b1acc26cd026df67f680613f1e22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 29 Jul 2023 12:03:53 +0200 Subject: [PATCH] Use predictable file names --- vite.config.js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/vite.config.js b/vite.config.js index 5c45e1d..23afddb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,12 +5,21 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue(), - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } + plugins: [ + vue(), + ], + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + } + }, + build: { + // https://rollupjs.org/configuration-options/ + rollupOptions: { + output: { + entryFileNames: 'assets/[name].js', + assetFileNames: 'assets/sake.min[extname]', + } + } + } })