Replies: 1 comment 2 replies
-
This change shouldn't make any difference between different environments. Could you please recheck the behavior? (of course, by removing the bundled assets in the dev environment) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I will create this discussion here because I don't know if this is an intended behaviour or a bug:
From the latest update to shakapacker 7 we have a problem with some assets in production. We are using a package for math formulas https://www.npmjs.com/package/katex and after the update the fonts of the formulas were broken. Then we realised that the fonts were being loaded from the "wrong" path
https://cloudfront.net/shared/node_modules/katex/dist/fonts/KaTeX_Main-Regular-13b3f8528a571d1cb797eb520002dde9.woff2
instead of
https://cloudfront.net/packs/shared/node_modules/katex/dist/fonts/KaTeX_Main-Regular-13b3f8528a571d1cb797eb520002dde9.woff2
which was causing some CORS issues. The fonts built in a different path was caused by this commit https://github.com/shakacode/shakapacker/pull/283/files#diff-716197750a05276089fff034fe03597e5d569526a8ea683fb0022cf69456cbc4 that we had to revert in our config to fix the fonts. Is this assets path the way these fonts should be loaded now?
Expected behavior:
Fonts build within the same path in production
https://cloudfront.net/packs/shared/node_modules/katex/dist/fonts/KaTeX_Main-Regular-13b3f8528a571d1cb797eb520002dde9.woff2
Actual behavior:
Fonts build in a different path
https://cloudfront.net/shared/node_modules/katex/dist/fonts/KaTeX_Main-Regular-13b3f8528a571d1cb797eb520002dde9.woff2
Beta Was this translation helpful? Give feedback.
All reactions