reworkcss / rework-npm

Import CSS from npm modules using rework
BSD 2-Clause "Simplified" License
87 stars 19 forks source link

Add support for whitespace-sensitive CSS #6

Closed mjpizz closed 10 years ago

mjpizz commented 10 years ago

I needed support for @importing whitespace-sensitive files, so here's a simple implementation that adds {whitespace: true} as an option. This is similar to how rework-importer works, but I personally prefer rework-npm :)

conradz commented 10 years ago

I think this is best implemented as a more general option, something down the lines of { prefilter: require('css-whitespace') } (provide an option that takes a function), so that anyone can add arbitrary processing to the imported contents.

mjpizz commented 10 years ago

Works for me, I'll update the PR.

mjpizz commented 10 years ago

That look more like what you were thinking? I also added docs to the README, missed that before.

conradz commented 10 years ago

yep, exactly! :sparkles:

New release coming soon!

conradz commented 10 years ago

Released in 0.5.0! :shipit: