suitcss / rework-suit

Collection of "pure CSS" plugins for Rework (DEPRECATED)
http://suitcss.github.io
MIT License
50 stars 7 forks source link

Add rework-npm #11

Closed necolas closed 10 years ago

necolas commented 10 years ago

Introduces the ability to inline @import statements, run conformance checks on individual files, and to inline CSS files installed with npm.

An issue I'd like input on is how to pass the rework-npm options (or a subset) into this plugin bundle. The changeset shows how I've had to use the path from the repo root, rather than relative to the initial entry file (because rework-npm doesn't know where the entry file lives). Any ideas for a nice solution? cc @conradz

Fix gh-10

conradz commented 10 years ago

You can specify the dir option to rework-npm to tell it where the initial file lives. It really should actually find that from the position information right in the AST, but for now you can specify it manually.

necolas commented 10 years ago

Closing. Applied in c5acd23fd442dd39261e7a7e230f10257d1e46ab