Improve asset naming
This commit is contained in:
parent
cfc9a677af
commit
26b9aa7be7
2 changed files with 2 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -10,6 +10,7 @@ build: frontend
|
|||
|
||||
.PHONY: frontend
|
||||
frontend: node_modules
|
||||
git clean -fdx pkg/frontend/assets/
|
||||
node ci/build.mjs
|
||||
|
||||
node_modules:
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue