We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
files
1 parent 50c1884 commit 9048dd6Copy full SHA for 9048dd6
packages/react-scripts/config/webpack.config.js
@@ -598,6 +598,16 @@ module.exports = function(webpackEnv) {
598
new ManifestPlugin({
599
fileName: 'asset-manifest.json',
600
publicPath: publicPath,
601
+ generate: (seed, files) => {
602
+ const manifestFiles = files.reduce(function(manifest, file) {
603
+ manifest[file.name] = file.path;
604
+ return manifest;
605
+ }, seed);
606
+
607
+ return {
608
+ files: manifestFiles,
609
+ };
610
+ },
611
}),
612
// Moment.js is an extremely popular library that bundles large locale files
613
// by default due to how Webpack interprets its code. This is a practical
0 commit comments