limit manifest to entrypoints (#5936)

This commit is contained in:
Paulus Schoutsen 2020-05-19 23:55:17 -07:00 committed by GitHub
parent 6ae717bbfe
commit d2a1d11d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,10 @@ const createWebpackConfig = ({
},
plugins: [
new WorkerPlugin(),
new ManifestPlugin(),
new ManifestPlugin({
// Only include the JS of entrypoints
filter: (file) => file.isInitial && !file.name.endsWith(".map"),
}),
new webpack.DefinePlugin({
__DEV__: !isProdBuild,
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),