Skip to content

require css file from node_modules with resolver #46

@coderaiser

Description

@coderaiser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions