egoist / egoist/rollup-plugin-postcss

modules true and postcss-custom-properties doesn't seem to transform everything

Open
#411 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

Hi,

So I use postcss-custom-properties with css modules (`modules: true`) and have the postcss-custom-properties plugin and set it to `preserve: false` to that my `var(--something)` will not be kept in the css.

I seems to work for some of my css but not all as some cases doesn't seem to be transformed at all.

I've set up a repository here:
https://github.com/badtant/test

1. yarn install
2. yarn build:prod
3. search for `var(--` in the dist folder and there will be hits but I dont expect that

Not sure if this is an issue with rollup-plugin-postcss, postcss-custom-properties or somewhere else. It seems it's the parts that I compose from a different file that isn't transformed.

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.