When running the above script against my CSS I would expect to see:
.highlight{
font-size: 24px;
font-size: 1.5rem
}
But with the option replaced set to false I currently see:
.highlight{
font-size:1.5rem
}
Of Note
a) The above config is definitely being picked up because changing the contents of the propWhiteList option works as expected and is reflected in the outputted css file.
b) setting up a node script as described here with the option replaced set to false works as expected.
c) I am not sure this is connected but I could not get the postcss.config.js to be picked up or get it to work by any of the methods described in the migration guide. The only way it has worked is as described above via this issue comment from @michael-ciniawsky potentially this is causing an issue here with the replaced option not being respected?
I have set up
postcss-cli
v3.2.0
using thepostcss.config.js
as instructed herepackage.json
My npm script is:
postcss.config.js
This is in my root directory
When running the above script against my CSS I would expect to see:
But with the option
replaced
set tofalse
I currently see:Of Note
a) The above config is definitely being picked up because changing the contents of the
propWhiteList
option works as expected and is reflected in the outputted css file.b) setting up a node script as described here with the option
replaced
set tofalse
works as expected.c) I am not sure this is connected but I could not get the
postcss.config.js
to be picked up or get it to work by any of the methods described in the migration guide. The only way it has worked is as described above via this issue comment from @michael-ciniawsky potentially this is causing an issue here with thereplaced
option not being respected?