Properly saving the module context
parent
4babc0df89
commit
51fe533c1d
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue