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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top