Improve asset naming

This commit is contained in:
Knut Ahlers 2024-01-17 23:36:40 +01:00
parent cfc9a677af
commit 26b9aa7be7
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ build: frontend
.PHONY: frontend
frontend: node_modules
git clean -fdx pkg/frontend/assets/
node ci/build.mjs
node_modules:

View file

@ -3,7 +3,7 @@ import { sassPlugin } from 'esbuild-sass-plugin'
import vuePlugin from 'esbuild-plugin-vue3'
esbuild.build({
assetNames: '[name]',
assetNames: '[name]-[hash]',
bundle: true,
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'dev'),