From d3f0bd84ccc349e5a54349ce74c3915080d3d25c Mon Sep 17 00:00:00 2001 From: "Morten N.O. Henriksen" Date: Sat, 5 Dec 2020 11:39:49 +0100 Subject: [PATCH] Update WebpackManifestPlugin to v3.0.0 --- packages/react-scripts/config/webpack.config.js | 4 ++-- packages/react-scripts/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 8efff0b96c7..f64b605b726 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'); @@ -682,7 +682,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 cfbc9a46189..13b29aaf734 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -83,7 +83,7 @@ "url-loader": "4.1.1", "webpack": "4.44.2", "webpack-dev-server": "3.11.0", - "webpack-manifest-plugin": "2.2.0", + "webpack-manifest-plugin": "3.0.0", "workbox-webpack-plugin": "5.1.4" }, "devDependencies": {