css-modules / css-modulesify

A browserify plugin to load CSS Modules
MIT License
403 stars 47 forks source link

question: css-modulesify with postcss-import #82

Closed tinchoz49 closed 8 years ago

tinchoz49 commented 8 years ago

Hi guys, I been trying to use postcss-import with css-modulesify but without success. The plugin is not importing the files at all. Soo my question here is, someone knows if this plugin works with css-modulesify and how is your configuration?

My idea is use postcss-import to work import my global styles.

@import 'bootstrap';

.btn-green {
   color: green;
   composes: btn from global;
}

Thanks!!!

emilbayes commented 8 years ago

I don't think this is the right place to ask such questions, but see my issue: https://github.com/css-modules/css-modulesify/issues/80 I have exactly the same issue as you. I chose to fork the repo and apply the fix I propose, unknowing whether it's right or wrong. I think the maintainers are busy working on the spec/core modules :)

tinchoz49 commented 8 years ago

Hi @emilbayes! I didn't know that there was an issue related, I thought that maybe I was doing something wrong in my configuration. Excellent your pull request, i'm going to wait for that fix.

Thanks!

About if is this the right place or not, there is a label Question to use in this kind of "issue" that's why i wrote it here.

emilbayes commented 8 years ago

@tinchoz49 Arr yeah, I reckon it's just one of the default ones though ... I haven't exactly submitted a PR since it's a hack, until the maintainers tell otherwise