postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

Import from .pcss files #209

Closed Charlie91 closed 4 years ago

Charlie91 commented 4 years ago

Hi. I'm trying to get variables declared in specific file from any other .pcss file.

I'm doing it this way: require('postcss-custom-properties')({ preserve: false, importFrom: 'src/styles/base.css', }), The problem is it is working only if I use css-file for my variables, and if I use it like this importFrom: 'src/styles/base.pcss it is not

Semigradsky commented 4 years ago

Fixed in https://github.com/postcss/postcss-custom-properties/releases/tag/9.2.0