Properly saving the module context

pull/1/head
WolverinDEV 2021-03-22 19:53:51 +01:00
parent 4babc0df89
commit 51fe533c1d
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import {CleanWebpackPlugin} from "clean-webpack-plugin";
import HtmlWebpackPlugin from "html-webpack-plugin";
import * as SpriteGenerator from "../plugin/";
console.log("Using config %s", process.env.NODE_ENV === "development" ? "development" : "production");
export = {
entry: path.join(__dirname, "app", "index.tsx"),
target: "web",

View File

@ -53,6 +53,7 @@ class SvgSpriteModule extends Module {
constructor(context: string, pluginConfig: Options, configName: string, config: SvgSpriteConfiguration) {
super("javascript/dynamic", null);
this.context = context;
this.pluginConfig = pluginConfig;
this.configName = configName;
this.config = config;