barryanders / grav-plugin-blackhole

The static site generator for Grav CMS
Other
169 stars 18 forks source link

added tidal_disruption() calls for more attribute types and implemented export of assets referenced in css files #52

Closed Fjormos closed 1 year ago

Fjormos commented 2 years ago

[added tidal_disruption() calls for fetching srcset attribute in images and data attribute in object element and adapted tidal_disruption() to correctly handle the attribute value of scrset. also added function generateCssAssets() which extracts and returns all url values except data URIs so that assets referenced in CSS are added to the asset_links and get handled normally by the function pages(). included a check if the css file destination already exists or has not changed to avoid having new requests for the same css file on every page as this would lead to severe performance issues. however, this also means that the --force option can not be used for the files referenced in css.

barryanders commented 1 year ago

Have you run into any bugs with this, @Fjormos? Overall, if you're happy with it, I'll go ahead and merge it.

Fjormos commented 1 year ago

No, did not encounter any bugs so far @barryanders