1
0
Fork 0
forked from OpenNeo/impress

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.
This commit is contained in:
Emi Matchu 2023-08-22 15:24:00 -07:00
parent 1e9603a92f
commit 2c8c67d75c

View file

@ -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"
}
}