mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-08 03:59:30 +00:00
Optimize z-related components: Bundle analyzer, Brotli compression, ZXing lazy loading
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
cb26e6d181
commit
130b08090a
4 changed files with 45 additions and 16 deletions
|
|
@ -175,7 +175,7 @@ if (Encore.isProduction()) {
|
|||
test: /\.(js|css|html|svg)$/,
|
||||
compressionOptions: {
|
||||
// zlib’s `level` option matches Brotli’s `BROTLI_PARAM_QUALITY` option.
|
||||
level: 11,
|
||||
level: 6,
|
||||
},
|
||||
//threshold: 10240,
|
||||
minRatio: 0.8,
|
||||
|
|
@ -190,9 +190,9 @@ if (Encore.isProduction()) {
|
|||
}))
|
||||
}
|
||||
|
||||
if (Encore.isDev()) {
|
||||
if (Encore.isDev() && !process.env.CI) {
|
||||
//Only uncomment if needed, as this cause problems with Github actions (job does not finish)
|
||||
Encore.addPlugin(new BundleAnalyzerPlugin());
|
||||
//Encore.addPlugin(new BundleAnalyzerPlugin());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue