react应用多入口配置
2020-07-16 18:13 平凡故事 阅读(656) 评论(0) 编辑 收藏 举报https://www.cnblogs.com/veromcae/p/10012937.html
注意
/* new ManifestPlugin({
fileName: 'asset-manifest.json',
publicPath: paths.publicUrlOrPath,
generate: (seed, files, entrypoints) => {
const manifestFiles = files.reduce((manifest, file) => {
manifest[file.name] = file.path;
return manifest;
}, seed);
const entrypointFiles = entrypoints.main.filter(
fileName => !fileName.endsWith('.map')
);
return {
files: manifestFiles,
entrypoints: entrypointFiles,
};
},
}), */
注释这段代码