Files
105eb779ee fix(css): cachedPostcssConfig reused for multiple builds (#3906)
* fix(css): cachedPostcssConfig reused for multiple builds

* fix: add tests to demonstrate that PostCSS configs are not reused across projects

* fix: run everything in a single Jest test to ensure module cache isn't cleared

Co-authored-by: François Wouts <[email protected]>
2021-07-20 14:24:50 +02:00

16 lines
286 B
JavaScript

module.exports = {
plugins: [replacePinkWithBlue]
}
function replacePinkWithBlue() {
return {
postcssPlugin: 'replace-pink-with-blue',
Declaration(decl) {
if (decl.value === 'pink') {
decl.value = 'blue'
}
}
}
}
replacePinkWithBlue.postcss = true