Replies: 2 comments
-
Hey @ghosh! 👋🏻 Depending on the system you use to generate those hash, you should have a helper to handle those. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the fast reply @RomainLanz I am using the backend integration feature of Vite which generates a {
"src/main.tsx": {
"file": "assets/main.dd0b2976.js",
"src": "src/main.tsx",
"isEntry": true,
"imports": [
"_vendor.884afe5a.js"
]
},
"_vendor.884afe5a.js": {
"file": "assets/vendor.884afe5a.js"
}
} The suggested way to use it is like:- <script type="module" src="/assets/{{ manifest['main.js'].file }}"></script> I tried like this, but it does not work in edge. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few files with dynamically generated hashes for cache busting. For example,
app.dd0b2976.js
,styles.884afe5a.css
.How would i go about importing these files into a view? Without having to manually add the hash every time.
Beta Was this translation helpful? Give feedback.
All reactions