Skip to content

Commit 48d7ffe

Browse files
raixianschmitz
andauthored
Update WebpackManifestPlugin (#10204)
Co-authored-by: Ian Schmitz <[email protected]>
1 parent 7b56cf7 commit 48d7ffe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const TerserPlugin = require('terser-webpack-plugin');
2020
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
2121
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
2222
const safePostCssParser = require('postcss-safe-parser');
23-
const ManifestPlugin = require('webpack-manifest-plugin');
23+
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
2424
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
2525
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
2626
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
@@ -687,7 +687,7 @@ module.exports = function (webpackEnv) {
687687
// `index.html`
688688
// - "entrypoints" key: Array of files which are included in `index.html`,
689689
// can be used to reconstruct the HTML if necessary
690-
new ManifestPlugin({
690+
new WebpackManifestPlugin({
691691
fileName: 'asset-manifest.json',
692692
publicPath: paths.publicUrlOrPath,
693693
generate: (seed, files, entrypoints) => {

packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"url-loader": "4.1.1",
8686
"webpack": "4.44.2",
8787
"webpack-dev-server": "3.11.1",
88-
"webpack-manifest-plugin": "2.2.0",
88+
"webpack-manifest-plugin": "3.0.0",
8989
"workbox-webpack-plugin": "5.1.4"
9090
},
9191
"devDependencies": {

0 commit comments

Comments
 (0)