browserify-css icon indicating copy to clipboard operation
browserify-css copied to clipboard

require css file from node_modules with resolver

Open coderaiser opened this issue 9 years ago • 0 comments

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.

coderaiser avatar Oct 05 '16 13:10 coderaiser