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

It is impossible to check context in loader's include function #19

@andrey-skl

Description

@andrey-skl

When I use include: function(path){} parameter for loader, it is impossible to check context (file which requires this path).
Example:

    loaders: [
      {
        test: /.svg/,
        include: function(path) {
          //I want to check context here, but it is impossible
          console.log('path', path)
        },
        loader: 'svgo'
      }
   ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions