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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top