Skip to content
This repository has been 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

Open
andrey-skl opened this issue Oct 27, 2015 · 0 comments
Open

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

andrey-skl opened this issue Oct 27, 2015 · 0 comments

Comments

@andrey-skl
Copy link

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'
      }
   ]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant