Skip to content

Commit

Permalink
fix(plugin): webpack-manifest-plugin compatibility
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #166
  • Loading branch information
kisenka committed Aug 17, 2017
1 parent 8d658d1 commit d88ac31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class SVGSpritePlugin {
return Sprite.create({ symbols: spriteSymbols })
.then((sprite) => {
const content = sprite.render();
const chunk = new Chunk(filename);
const chunkName = filename.replace(/\.svg$/, '');
const chunk = new Chunk(chunkName);
chunk.ids = [];
chunk.files.push(filename);

Expand Down

0 comments on commit d88ac31

Please sign in to comment.