systemjs / plugin-css

CSS loader plugin
MIT License
92 stars 60 forks source link

css map option #95

Closed sormy closed 8 years ago

sormy commented 8 years ago

Hello. I would like to propose a micro fix which will allow to map css-like files with wildcards. That will allow to use css pre/post processing on backend side for css-like files while SystemJS and builder will not know about that. That could be a good temporary solution until new plugin-css with modules for less, scss, autoprefixer etc. will be implemented. Thank you.

PS: May be we could move all css related options into cssOptions config property.

guybedford commented 8 years ago

Great work!!

This project was just updated yesterday with a release to make it possible to build CSS plugins on top of this as a base-level plugin.

I think it should be possible to use this approach to provide your remap functionality as a separate plugin?

I'd love to see some more experimentation of advanced CSS features that can then sit outside of the core CSS plugin in this way.

Perhaps you would consider making this its own project? It would be great to include in the plugin list as a more advanced CSS plugin approach.

Happy to discuss further... just let me know your thoughts.

sormy commented 8 years ago

Current plugin-css implementation don't have hook for locate. Not sure how can this plugin be used as basis? extend from it? compose with it?

guybedford commented 8 years ago

See systemjs/plugin-less as an example of how the plugin can be used as a base. The extension can then add whatever hooks it likes. On Fri, 29 Jul 2016 at 02:22, Artem Butusov notifications@github.com wrote:

Current plugin-css implementation don't have hook for locate. Not sure how can this plugin be used as basis? extend from it? compose with it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/systemjs/plugin-css/pull/95#issuecomment-236062915, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkiyu_PLZ8SEK-tAtxb1UrQbY1XwyTbks5qaUexgaJpZM4JVvWN .