File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const autoprefixer = require('autoprefixer');
12
12
const path = require ( 'path' ) ;
13
13
const webpack = require ( 'webpack' ) ;
14
14
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
15
+ const InlineChunkHtmlPlugin = require ( 'react-dev-utils/InlineChunkHtmlPlugin' ) ;
15
16
const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
16
17
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
17
18
const OptimizeCSSAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' ) ;
@@ -433,6 +434,9 @@ module.exports = {
433
434
minifyURLs : true ,
434
435
} ,
435
436
} ) ,
437
+ // Inlines the webpack runtime script. This script is too small to warrant
438
+ // a network request.
439
+ new InlineChunkHtmlPlugin ( HtmlWebpackPlugin , [ / r u n t i m e ~ .+ [ . ] j s / ] ) ,
436
440
// Makes some environment variables available in index.html.
437
441
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
438
442
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
You can’t perform that action at this time.
0 commit comments