TrySound / postcss-easy-import

PostCSS plugin to inline @import rules content with extra features
MIT License
201 stars 25 forks source link

Compatibility with .pcss #28

Closed riccardoerra closed 5 years ago

riccardoerra commented 5 years ago

Using PostCSS and before was just using as extensions .css. So for example having something like this works:

@import "vars.css";
@import "fonts.css";
@import "all.css";
@import "main.css";
@import "../../components/**/*.css";

I'm now in the process of changing the extensions of the stylesheet files to .pcss and the plugins seems not to work.

@import "vars.pcss";
@import "fonts.pcss";
@import "all.pcss";
@import "main.pcss";
@import "../../components/**/*.pcss";

All the files get correctly imported apart from the one inside components subfolders.

Any idea why and/or what to do to try to fix this issue?

equinusocio commented 5 years ago

Hi, you have to set the correct extension in options.. https://github.com/TrySound/postcss-easy-import#extensions