1 2 3 4
config.plugins.push(new webpack.ProvidePlugin({ moment: "moment", "window.moment": "moment" }));