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

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"),