Skip to content

Commit

Permalink
Merge pull request #10866 from DestinyItemManager/sonda
Browse files Browse the repository at this point in the history
Add sonda for bundle reporting
  • Loading branch information
bhollis authored Dec 21, 2024
2 parents 2a1c719 + 53d212c commit 51ea518
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ webpack-stats.json
junit.xml
eslint.results.json
.pnpm-store
/sonda-report.html
11 changes: 11 additions & 0 deletions config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import svgToMiniDataURI from 'mini-svg-data-uri';
import path from 'path';
import PostCSSAssetsPlugin from 'postcss-assets-webpack-plugin';
import { SondaWebpackPlugin } from 'sonda';
import TerserPlugin from 'terser-webpack-plugin';
import 'webpack-dev-server';
import WebpackNotifierPlugin from 'webpack-notifier';
Expand Down Expand Up @@ -559,6 +560,16 @@ export default (env: Env) => {
},
}),

new SondaWebpackPlugin({
format: 'html',
filename: 'sonda-report.html',
open: false,
detailed: true,
sources: true,
gzip: false,
brotli: true,
}),

new CopyWebpackPlugin({
patterns: [
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"react-refresh": "^0.16.0",
"sass": "^1.83.0",
"sass-loader": "^16.0.4",
"sonda": "^0.6.2",
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"stylelint": "^16.12.0",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51ea518

Please sign in to comment.