Skip to content

Commit

Permalink
fix(plugin): properly generate symbol url in extract mode
Browse files Browse the repository at this point in the history
reported in #106
  • Loading branch information
kisenka committed May 8, 2017
1 parent e712692 commit 6af7230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SVGSpritePlugin {
// Replace placeholders with real URL to symbol (in modules processed by sprite-loader)
compilation.plugin('after-optimize-chunks', function replacePlaceholdersInModules() {
const map = new MappedList(symbols, this);
const replacements = map.groupItemsBySymbolFile((acc, item) => acc[item.resource] = item.url);
const replacements = map.groupItemsBySymbolFile((acc, item) => acc[item.resource] = item.useUrl);
map.items.forEach(item => replaceInModuleSource(item.module, replacements));
});

Expand Down

0 comments on commit 6af7230

Please sign in to comment.