From be5b864736a0613fcdb54ec038cc35239d719d5c Mon Sep 17 00:00:00 2001 From: * <8> Date: Mon, 18 Apr 2022 17:50:38 +0800 Subject: [PATCH] Match-id-0a5df1caf20a3855a1bc4052117f5835e113fd74 --- libs/extension/webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/extension/webpack.config.js b/libs/extension/webpack.config.js index f712808b..25dab94b 100644 --- a/libs/extension/webpack.config.js +++ b/libs/extension/webpack.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const webpack = require('webpack'); const config = { entry: { @@ -45,6 +46,12 @@ const config = { externals: { 'horizon': 'Horizon', }, + plugins: [ + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': '"development"', + isDev: 'false', + }), + ], }; module.exports = config;