From 2c8c67d75c10a6610b3ecaa8df3182fdbc50765c Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 22 Aug 2023 15:24:00 -0700 Subject: [PATCH] Start to fix image problems in JS builds Soo I think the reason adding `.digested` to the filenames like `jsbundling-rails` says to doesn't work, is because we're on an old version of Sprockets for compass-rails's sake? I'm gonna investigate what Compass actually does for us, and see if we can delete it. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } }