0
Try to read mode through process.env.WEBPACK_MODE. In your case: const isDevelopement = (process.env.WEBPACK_MODE === "development"); Another, workaround solution using WebpackDefinePlugin: const mode = 'development'; module.exports = merge(common, { mode: mode, plugins: [ new webpa...