Replies: 2 comments
-
There's a link to the asset names documentation https://esbuild.github.io/api/#asset-names |
Beta Was this translation helpful? Give feedback.
-
And for entry/"non-asset" files (the JS files in my PHP project's case): It would be great to be able to simply set esbuild to hash all output files with Snowpack config. I'm currently having hashes added to JS, CSS and image filenames with Buster and a pre-bust script that replaces the file-relative paths in built JS and CSS files to the site-relative paths that Buster requires in order to do its in-file path replacements. (E.g.
|
Beta Was this translation helpful? Give feedback.
-
In the latest versions (I think 0.10.x) of Esbuild they have added support for configuring asset names during output.
In particular I'd be interested in seeing support for including that configurations ability to add content hashes to the output.
I'm still trying to catch up with esbuild's progress, but I'm not sure if they support an asset manifest where you can lookup "foo.js" to "foo.hash.js". If it doesn't it would be great to add support within snowpack, potentially including the import map JSON for web_modules. What do others think?
Beta Was this translation helpful? Give feedback.
All reactions