1. Remove duplicate/broken code in product tables section 2. Fix PostCSS config for Tailwind 4 3. Add @tailwindcss/postcss dependency 4. Remove --production flag from Dockerfile (sharp required) All fixes enable successful Docker build with favicon working.
26 lines
509 B
JavaScript
26 lines
509 B
JavaScript
import { detachNodeFromParent } from '../lib/xast.js';
|
|
|
|
export const name = 'removeMetadata';
|
|
export const description = 'removes <metadata>';
|
|
|
|
/**
|
|
* Remove <metadata>.
|
|
*
|
|
* https://www.w3.org/TR/SVG11/metadata.html
|
|
*
|
|
* @author Kir Belevich
|
|
*
|
|
* @type {import('../lib/types.js').Plugin}
|
|
*/
|
|
export const fn = () => {
|
|
return {
|
|
element: {
|
|
enter: (node, parentNode) => {
|
|
if (node.name === 'metadata') {
|
|
detachNodeFromParent(node, parentNode);
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|