question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update extract text plugin version [WebPack2]

See original GitHub issue

Hi,

In extract-svg-plugin.js, the syntaxe of extract-text-webpack-plugin is deprecated : this.extractPlugin = new ExtractPlugin(this.id, this.filename, this.options);

should be something like : this.extractPlugin = new ExtractPlugin({ filename: this.filename, id: this.id});

There might be other changes as it’s not enough to make this work again.

Thanks a lot.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
farwayercommented, Oct 14, 2016

@kisenka I made sample repo with test:

git clone https://github.com/farwayer/svg-sprite-loader-bug
cd svg-sprite-loader-bug
npm install
npm start
1reaction
farwayercommented, Oct 14, 2016

@kisenka Thanks for fixing. Now extracting working well. But one problem still exists. ExtractSVGPlugin outputs [object Object] as id.

Read more comments on GitHub >

github_iconTop Results From Across the Web

extract-text-webpack-plugin - npm
Extract text from bundle into a file.. Latest version: 3.0.2, last published: 5 years ago. Start using extract-text-webpack-plugin in your ...
Read more >
ExtractTextWebpackPlugin | webpack
ExtractTextWebpackPlugin. Extract text from a bundle, or bundles, into a separate file. Install. npm install ...
Read more >
README.md - GitHub
[DEPRECATED] Please use https://github.com/webpack-contrib/mini-css-extract-plugin Extracts text from a bundle into a separate file - GitHub ...
Read more >
extract-text-webpack-plugin replacement in webpack 5
I'm working on the project upgrading from webpack 3 to webpack 5. In the project, it was using raw-loader and extract-text-webpack-plugin to ...
Read more >
extract-text-webpack-plugin - npm package - Snyk
An important project maintenance signal to consider for extract-text-webpack-plugin is that it hasn't seen any new versions released to npm in the past...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found