Not stable
IRediTOTO opened this issue · 2 comments
IRediTOTO commented
Hi, when I run build on local, everything is fine but when it run on Heroku some CSS lost, that make layout broken...
It run ok for some months but I just changed some code. I can't find where did I wrong, because so many file I changed.
IRediTOTO commented
oh it come from @fullhuman/postcss-purgecss
IRediTOTO commented
Do you have any config for purgecss?
Here is mine
[
"@fullhuman/postcss-purgecss",
{
content: ["./src/pages/**/*.{js,jsx,ts,tsx}", "./src/components/**/*.{js,jsx,ts,tsx}"],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
},
],
It is fine one local but I don't understand some css lost when deploy to server Heroku