feat: enable http emulator support

This commit is contained in:
Chris Anderson
2024-10-10 23:15:50 +00:00
parent d9d90ac6d9
commit fc774e1089
4 changed files with 10 additions and 2 deletions

View File

@@ -192,6 +192,12 @@ module.exports = function (_env = {}, argv = {}) {
new EnvironmentPlugin(envVars),
];
if(process.env.EXPLORER_CONFIG_PATH) {
plugins.push(new CopyWebpackPlugin({
patterns: [{ from: process.env.EXPLORER_CONFIG_PATH, to: "config.json" }]
}));
}
if (argv.analyze) {
plugins.push(new BundleAnalyzerPlugin());
}