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'),