mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
16 lines
291 B
JavaScript
16 lines
291 B
JavaScript
export default {
|
|
plugins: [replacePinkWithGreen],
|
|
}
|
|
|
|
function replacePinkWithGreen() {
|
|
return {
|
|
postcssPlugin: 'replace-pink-with-green',
|
|
Declaration(decl) {
|
|
if (decl.value === 'pink') {
|
|
decl.value = 'green'
|
|
}
|
|
},
|
|
}
|
|
}
|
|
replacePinkWithGreen.postcss = true
|