We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81561b commit ab495dbCopy full SHA for ab495db
packages/react-scripts/config/webpack.config.prod.js
@@ -218,7 +218,10 @@ module.exports = {
218
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
219
// In production, it will be an empty string unless you specify "homepage"
220
// in `package.json`, in which case it will be the pathname of that URL.
221
- new InterpolateHtmlPlugin(env['process.env']),
+ new InterpolateHtmlPlugin({
222
+ PUBLIC_URL: publicUrl,
223
+ REACT_APP_GA: env['process.env'].REACT_APP_GA || ''
224
+ }),
225
// Generates an `index.html` file with the <script> injected.
226
new HtmlWebpackPlugin({
227
inject: true,
0 commit comments