Skip to content

Commit

Permalink
I had this exact same issue https://github.com/rails/jsbundling-rails…
Browse files Browse the repository at this point in the history
…/issues/76\#issue-1115571908

Better explained in a later comment https://github.com/rails/jsbundling-rails/issues/76\#issuecomment-1022695521

And I'm trying this solution https://github.com/rails/jsbundling-rails/issues/76\#issuecomment-1051248565

I would have said the solution makes not only images, but also .js and .css lose the fingerprint functionality, but for whatever reason it's still fingerptinting everything except images..
  • Loading branch information
MartinSugasti committed Sep 6, 2023
1 parent e5a66da commit a7c242e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"slick-carousel": "^1.8.1"
},
"scripts": {
"build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx --loader:.png=file --loader:.svg=file",
"build": "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",
"build:css:compile": "sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules",
"build:css:prefix": "postcss ./app/assets/builds/application.css --use=autoprefixer --output=./app/assets/builds/application.css",
"build:css": "yarn build:css:compile && yarn build:css:prefix",
Expand Down

0 comments on commit a7c242e

Please sign in to comment.