parcel-plugin-ogimage
parcel-plugin-ogimage copied to clipboard
Set absolute URL for og:image meta tags.
[`parcel-plugin-inliner`](https://github.com/shff/parcel-plugin-inliner) uses `--public-url` for local files resolving but `parcel-plugin-inliner` uses this option for URL transforming. So I cannot use both plugins. https://github.com/shff/parcel-plugin-inliner/issues/13
Fixes my issue, https://github.com/lukechilds/parcel-plugin-ogimage/issues/5 - loops through all `.html` files - only tries to change the `og:image` if it exists - grabs the important bit of the url (origin), so...
When I try to transform the following tags: ```html ``` I get this error: ``` UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of null at getMetaTag (/home/v1rtl/Desktop/Coding/v1rtl.site/node_modules/parcel-plugin-ogimage/index.js:11:25) at Bundler. (/home/v1rtl/Desktop/Coding/v1rtl.site/node_modules/parcel-plugin-ogimage/index.js:35:20) at...