diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 51c0234698c..9530453a4cc 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -20,7 +20,7 @@ const TerserPlugin = require('terser-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const safePostCssParser = require('postcss-safe-parser'); -const ManifestPlugin = require('webpack-manifest-plugin'); +const { WebpackManifestPlugin } = require('webpack-manifest-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); const WorkboxWebpackPlugin = require('workbox-webpack-plugin'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); @@ -687,7 +687,7 @@ module.exports = function (webpackEnv) { // `index.html` // - "entrypoints" key: Array of files which are included in `index.html`, // can be used to reconstruct the HTML if necessary - new ManifestPlugin({ + new WebpackManifestPlugin({ fileName: 'asset-manifest.json', publicPath: paths.publicUrlOrPath, generate: (seed, files, entrypoints) => { diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 6fddb9d8e40..29cfe9b8984 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -85,7 +85,7 @@ "url-loader": "4.1.1", "webpack": "4.44.2", "webpack-dev-server": "3.11.1", - "webpack-manifest-plugin": "2.2.0", + "webpack-manifest-plugin": "3.0.0", "workbox-webpack-plugin": "5.1.4" }, "devDependencies": {