diff --git a/config/webpack/webpack.common.js b/config/webpack/webpack.common.js index 22d035368c42..8c74ebfd1686 100644 --- a/config/webpack/webpack.common.js +++ b/config/webpack/webpack.common.js @@ -66,7 +66,8 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({ template: 'web/index.html', filename: 'index.html', splashLogo: fs.readFileSync(path.resolve(__dirname, `../../assets/images/new-expensify${mapEnvToLogoSuffix(envFile)}.svg`), 'utf-8'), - usePolyfillIO: platform === 'web', + isWeb: platform === 'web', + isProduction: envFile === '.env.production', isStaging: envFile === '.env.staging', }), new FontPreloadPlugin({ diff --git a/web/index.html b/web/index.html index 6e5d0cd3c5d6..a7630b1a2cdc 100644 --- a/web/index.html +++ b/web/index.html @@ -131,13 +131,23 @@ - <% if (htmlWebpackPlugin.options.usePolyfillIO) { %> + <% if (htmlWebpackPlugin.options.isWeb) { %> + <% if (htmlWebpackPlugin.options.isProduction) { %> + + + + <% } %> <% } %>
+ <% if (htmlWebpackPlugin.options.isWeb && htmlWebpackPlugin.options.isProduction) { %> + + + + <% } %>