Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader should support different configs #46

Closed
mdreizin opened this issue Jul 1, 2016 · 1 comment
Closed

Loader should support different configs #46

mdreizin opened this issue Jul 1, 2016 · 1 comment
Assignees

Comments

@mdreizin
Copy link

mdreizin commented Jul 1, 2016

It would be nice to have ability to use custom configs via https://github.com/webpack/loader-utils#getloaderconfig

@kisenka kisenka self-assigned this Jul 4, 2016
@kisenka
Copy link
Contributor

kisenka commented Jul 16, 2016

@mdreizin hi! Sorry for delay. You can specify different configs in 0.0.26 via config option like this:

{
  module: {
    loaders: [
      {
        test: /\.svg$/,
        loader: 'svg-sprite?config=svgConfig1'
      }
    ]
  },

  svgConfig1: {
    name: 'tralala_[name]'
  }
};

@kisenka kisenka closed this as completed Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants