mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
limit manifest to entrypoints (#5936)
This commit is contained in:
@@ -53,7 +53,10 @@ const createWebpackConfig = ({
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new WorkerPlugin(),
|
new WorkerPlugin(),
|
||||||
new ManifestPlugin(),
|
new ManifestPlugin({
|
||||||
|
// Only include the JS of entrypoints
|
||||||
|
filter: (file) => file.isInitial && !file.name.endsWith(".map"),
|
||||||
|
}),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
__DEV__: !isProdBuild,
|
__DEV__: !isProdBuild,
|
||||||
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
|
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
|
||||||
|
|||||||
Reference in New Issue
Block a user