summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-07-08 20:54:43 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-08 20:54:43 +0200
commitc864a20b57bb433aaf3952f88d83c9fc481ae6ff (patch)
tree60cc22a87e476f1552a7638f6c11996864ca0e8d /webpack.config.ts
parentd1b4fce11e9e51240325cbc67e39abe38db35dd2 (diff)
downloadrefined-github-23.7.8.tar.gz
refined-github-23.7.8.tar.zst
refined-github-23.7.8.zip
Update dependencies (#6766)23.7.8
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index 2c9fd70a..1f705862 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -1,7 +1,6 @@
/// <reference types="./source/globals.js" />
import path from 'node:path';
-import SizePlugin from 'size-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import webpack, {Configuration} from 'webpack';
@@ -10,8 +9,12 @@ import MiniCssExtractPlugin from 'mini-css-extract-plugin';
const config: Configuration = {
devtool: false, // Only inline source maps work in extensions, but they would slow down the extension for everyone
stats: {
- all: false,
- errors: true,
+ preset: 'errors-warnings',
+ entrypoints: true,
+ timings: true,
+ },
+ performance: {
+ hints: false,
},
entry: Object.fromEntries([
'refined-github',
@@ -64,7 +67,6 @@ const config: Configuration = {
from: '*.+(html|png)',
}],
}),
- new SizePlugin({writeFile: false}),
],
resolve: {
alias: {