Closed lnpbk closed 7 years ago
We use cheerio
and a specific selector to get all the link
and script
tag (https://github.com/furzeface/cachebust/blob/master/lib/cachebust.js#L51), and I think these elements aren't handle by cheerio natively.
I will try to see if cheerio can select this kind of elements.
It won't be supported by cheerio
because the conditional comment is not even used by Edge, but a trick have been found https://github.com/claudetech/node-static-i18n/commit/1e37ce45a83cef8ab147d8c8785268bf8f670ad3#diff-2fbc5085a7bbe6fb696a1a3b75a6f420R129 to do this.
If some of you would like to do a PR in the cache-bust project, it's welcome : https://github.com/furzeface/cachebust
Maybe a solution which create the comment after the cache-bust plugin could be simpler...
For now, I close this issue due to non support of underlying implementation (cheerio)
I'm running gulp-cache-bust on a few of my templates, and noticed that it doesn't find files within conditional comments.