Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
This repository was archived by the owner on May 16, 2025. It is now read-only.

Strip webpack directives before running npm install #12

@andersekdahl

Description

@andersekdahl

Thanks for a great loader!

With Wepack you can specify loaders in the require/import statement like this:

import logotype from '!!raw!image-webpack!./logo.svg';

Which this loader will pick up and try to install it. And that install will fail and print a bunch or errors in the console.
Perhaps check if the import/require contains ! and then ignore it? Or make it possible to provide a RegEx for import/require statements that this loader should ignore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions