gatsby-plugin-material-symbols
Version:
Easily add Material Symbols to your Gatsby site, with various Gatsby-specific performance optimizations built-in.
13 lines • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.onPreRenderHTML = void 0;
const onPreRenderHTML = ({ getHeadComponents, replaceHeadComponents, pathname }) => {
let headComponents = getHeadComponents();
headComponents = headComponents.filter((component) => !(component.type === "link" &&
component.props.as === "font" &&
component.props.rel === "preload" &&
component.props.href.includes("fonts.gstatic.com/s/materialsymbols")));
replaceHeadComponents(headComponents);
};
exports.onPreRenderHTML = onPreRenderHTML;
//# sourceMappingURL=onPreRenderHTML.js.map