cheton / browserify-css

A Browserify transform for bundling, rebasing, inlining, and minifying CSS files.
http://cheton.github.io/browserify-css/
MIT License
144 stars 22 forks source link

require css file from node_modules with resolver #46

Open coderaiser opened 8 years ago

coderaiser commented 8 years ago

Would be great to have ability require css files without using node_modules prefix.

When I doing:

require('smalltalk/dist/smalltalk.min.css');

As result I see: ParseError: Unexpected token and full content of css file.

Anyway when I doing:

require('./node_modules/smalltalk/dist/smalltalk.min.css')

Everything works good.

Maybe node-reslover could help with it.