From fb95a3eed7adb85b7f380ff352f792c2798ecd3d Mon Sep 17 00:00:00 2001 From: javadoug Date: Fri, 13 Sep 2019 19:23:14 -0400 Subject: [PATCH] update inline chunk html plugin config for new chunkname with dash (#5358) --- packages/react-scripts/config/webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 8150c7a2b34..f75782722d7 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -592,9 +592,10 @@ module.exports = function(webpackEnv) { ), // Inlines the webpack runtime script. This script is too small to warrant // a network request. + // https://github.com/facebook/create-react-app/issues/5358 isEnvProduction && shouldInlineRuntimeChunk && - new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime~.+[.]js/]), + new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/]), // Makes some environment variables available in index.html. // The public URL is available as %PUBLIC_URL% in index.html, e.g.: //