diff --git a/package.json b/package.json index abe5d793..d1b7578c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "scripts": { "build": "yarn build:base --minify", - "build:base": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text", + "build:base": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --asset-names=[name]-[hash].digested --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text", "dev": "yarn build:base --watch" } }