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

Angular base tag workaround doesn't work #159

Closed
andrey-skl opened this issue Jul 27, 2017 · 1 comment
Closed

Angular base tag workaround doesn't work #159

andrey-skl opened this issue Jul 27, 2017 · 1 comment

Comments

@andrey-skl
Copy link
Contributor

andrey-skl commented Jul 27, 2017

We use svg-sprite-loader together with ExtractTextPlugin.

After update it throws this exception:
Module build failed: ExtractPluginMissingException: svg-sprite-loader exception. svg-sprite-loader in extract mode requires the corresponding plugin at Object.loader (/Users/.../Documents/work/.../node_modules/svg-sprite-loader/lib/loader.js:39:13)

  • Node.js version: 7.8
  • webpack version: 2.2.0
  • svg-sprite-loader version: svg-sprite-loader
@andrey-skl
Copy link
Contributor Author

The issue was in bad configuration looked like:

     {
        test: /\.svg$/,
        loader: 'svg-sprite-loader?angularBaseWorkaround'
      },

Is working after change to:

      {
        test: /\.svg$/,
        loader: 'svg-sprite-loader',
        options: {
          extract: false,
          runtimeCompat: true,
          esModule: false
        }
      },

@kisenka kisenka reopened this Jul 28, 2017
@kisenka kisenka changed the title Does not work with ExtractTextPlugin: svg-sprite-loader in extract mode requires the corresponding plugin Angular base tag workaround doesn't work Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants