How to access postcss filter in JSX component? #368
-
Suppose I have a JSX (or preact JSX) component: export const css = `
p.test {
color: red;
}
`;
export default ({}, {postcss}) => (<p className="test">Hello</p>); How can I call postcss filter on the CSS? I understand that postcss is only available on the default export, not the css export. |
Beta Was this translation helpful? Give feedback.
Answered by
oscarotero
Jan 25, 2023
Replies: 1 comment 2 replies
-
Do you mean Lume components? (components stored in the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
shishkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean Lume components? (components stored in the
_components
folder). If so, the postcss plugin already process the css code because Lume create a css file with the CSS code generates by the used components (by default/components.css
), and this file is processed as any other CSS file.