Skip to content

Commit fb95a3e

Browse files
author
javadoug
committed
update inline chunk html plugin config for new chunkname with dash (facebook#5358)
1 parent a5c83ac commit fb95a3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,10 @@ module.exports = function(webpackEnv) {
592592
),
593593
// Inlines the webpack runtime script. This script is too small to warrant
594594
// a network request.
595+
// https://github.com/facebook/create-react-app/issues/5358
595596
isEnvProduction &&
596597
shouldInlineRuntimeChunk &&
597-
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime~.+[.]js/]),
598+
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/]),
598599
// Makes some environment variables available in index.html.
599600
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
600601
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">

0 commit comments

Comments
 (0)