From 26b9aa7be7f4ab6d3b4958d7d35f2c719decbfc8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 17 Jan 2024 23:36:40 +0100 Subject: [PATCH] Improve asset naming --- Makefile | 1 + ci/build.mjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dbcdf52..6be1007 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ build: frontend .PHONY: frontend frontend: node_modules + git clean -fdx pkg/frontend/assets/ node ci/build.mjs node_modules: diff --git a/ci/build.mjs b/ci/build.mjs index e8ed7e7..c7fbc75 100644 --- a/ci/build.mjs +++ b/ci/build.mjs @@ -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'),