Question

To compile my static web project I use Brunch. In order to serve it via a CDN without invalidating upon deploy I'd like to add an etag to my assets, e.g. my-app-12345.css instead of my-app.css.

Adding the etag to the file isn't the problem, but wiring it up in the index.html is a bit harder.

Is there a module that does this already? Or how could I achieve this otherwise?

Was it helpful?

Solution

I found digest-brunch, does exactly what I need!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top