From 5bb050a48d8ee1ebca734cd94a26504dff81c840 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 19 Mar 2021 01:39:24 +0100 Subject: [PATCH] Using a proper webpack module id --- plugin/plugin.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/plugin.ts b/plugin/plugin.ts index 5ba5d2f..a8638a6 100644 --- a/plugin/plugin.ts +++ b/plugin/plugin.ts @@ -72,6 +72,10 @@ class SvgSpriteModule extends Module { return `SVG sprite ` + this.configName; } + libIdent() { + return "svg-sprite/" + this.configName; + } + needBuild(context, callback) { context.fileSystemInfo.getContextHash(this.config.folder, (error, hash) => { if(error) {