Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 67a21b3

Browse files
committed
APPENV Fix
1 parent 7c115c4 commit 67a21b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ module.exports = (webpackConfigEnv) => {
7777
// ignore moment locales to reduce bundle size by 64kb gzipped
7878
// see solution details https://stackoverflow.com/questions/25384360/how-to-prevent-moment-js-from-loading-locales-with-webpack/25426019#25426019
7979
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
80+
new webpack.DefinePlugin({
81+
'process.env': {
82+
APPENV: JSON.stringify(process.env.APPENV),
83+
},
84+
}),
8085
],
8186
});
8287
};

0 commit comments

Comments
 (0)