mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Merge branch 'compress_dev' into energy_no_ids_compress_dev
This commit is contained in:
commit
32eda374e1
@ -2,6 +2,7 @@ const webpack = require("webpack");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const TerserPlugin = require("terser-webpack-plugin");
|
const TerserPlugin = require("terser-webpack-plugin");
|
||||||
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
|
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
|
||||||
|
const CompressionWebpackPlugin = require("compression-webpack-plugin");
|
||||||
const log = require("fancy-log");
|
const log = require("fancy-log");
|
||||||
const WebpackBar = require("webpackbar");
|
const WebpackBar = require("webpackbar");
|
||||||
const paths = require("./paths.js");
|
const paths = require("./paths.js");
|
||||||
@ -75,6 +76,7 @@ const createWebpackConfig = ({
|
|||||||
chunkIds: isProdBuild && !isStatsBuild ? "deterministic" : "named",
|
chunkIds: isProdBuild && !isStatsBuild ? "deterministic" : "named",
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CompressionWebpackPlugin(),
|
||||||
!isStatsBuild && new WebpackBar({ fancy: !isProdBuild }),
|
!isStatsBuild && new WebpackBar({ fancy: !isProdBuild }),
|
||||||
new WebpackManifestPlugin({
|
new WebpackManifestPlugin({
|
||||||
// Only include the JS of entrypoints
|
// Only include the JS of entrypoints
|
||||||
|
@ -100,6 +100,7 @@
|
|||||||
"app-datepicker": "^5.1.0",
|
"app-datepicker": "^5.1.0",
|
||||||
"chart.js": "^3.3.2",
|
"chart.js": "^3.3.2",
|
||||||
"comlink": "^4.4.1",
|
"comlink": "^4.4.1",
|
||||||
|
"compression-webpack-plugin": "^10.0.0",
|
||||||
"core-js": "^3.28.0",
|
"core-js": "^3.28.0",
|
||||||
"cropperjs": "^1.5.13",
|
"cropperjs": "^1.5.13",
|
||||||
"date-fns": "^2.29.3",
|
"date-fns": "^2.29.3",
|
||||||
|
13
yarn.lock
13
yarn.lock
@ -6860,6 +6860,18 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"compression-webpack-plugin@npm:^10.0.0":
|
||||||
|
version: 10.0.0
|
||||||
|
resolution: "compression-webpack-plugin@npm:10.0.0"
|
||||||
|
dependencies:
|
||||||
|
schema-utils: ^4.0.0
|
||||||
|
serialize-javascript: ^6.0.0
|
||||||
|
peerDependencies:
|
||||||
|
webpack: ^5.1.0
|
||||||
|
checksum: 2ac9079b7ab87141639c62ddbb2820a06f105198e27ef4c3860da3186bdbefc00d1e206969833ce7a4b7b26161ddbec7b8d20d30f9f9c1d494818b9b86f0d5cc
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"compression@npm:1.7.3":
|
"compression@npm:1.7.3":
|
||||||
version: 1.7.3
|
version: 1.7.3
|
||||||
resolution: "compression@npm:1.7.3"
|
resolution: "compression@npm:1.7.3"
|
||||||
@ -9626,6 +9638,7 @@ fsevents@~2.3.2:
|
|||||||
chai: ^4.3.7
|
chai: ^4.3.7
|
||||||
chart.js: ^3.3.2
|
chart.js: ^3.3.2
|
||||||
comlink: ^4.4.1
|
comlink: ^4.4.1
|
||||||
|
compression-webpack-plugin: ^10.0.0
|
||||||
core-js: ^3.28.0
|
core-js: ^3.28.0
|
||||||
cropperjs: ^1.5.13
|
cropperjs: ^1.5.13
|
||||||
date-fns: ^2.29.3
|
date-fns: ^2.29.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user