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 HtmlWebpackPlugin from "html-webpack-plugin";
|
||||||
import * as SpriteGenerator from "../plugin/";
|
import * as SpriteGenerator from "../plugin/";
|
||||||
|
|
||||||
|
console.log("Using config %s", process.env.NODE_ENV === "development" ? "development" : "production");
|
||||||
export = {
|
export = {
|
||||||
entry: path.join(__dirname, "app", "index.tsx"),
|
entry: path.join(__dirname, "app", "index.tsx"),
|
||||||
target: "web",
|
target: "web",
|
||||||
|
|
|
@ -53,6 +53,7 @@ class SvgSpriteModule extends Module {
|
||||||
|
|
||||||
constructor(context: string, pluginConfig: Options, configName: string, config: SvgSpriteConfiguration) {
|
constructor(context: string, pluginConfig: Options, configName: string, config: SvgSpriteConfiguration) {
|
||||||
super("javascript/dynamic", null);
|
super("javascript/dynamic", null);
|
||||||
|
this.context = context;
|
||||||
this.pluginConfig = pluginConfig;
|
this.pluginConfig = pluginConfig;
|
||||||
this.configName = configName;
|
this.configName = configName;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
|
|
Loading…
Reference in New Issue