mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-30 04:11:33 -08:00
feat: display multiple vio/bundle-stats-action
https://github.com/vio/bundle-stats-action/issues/78#issuecomment-905925925
This commit is contained in:
parent
ae349cc5d9
commit
72dcfa84ff
2 changed files with 28 additions and 3 deletions
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
|
|
@ -71,10 +71,17 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get Renderer Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: renderer
|
||||
webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Main Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: main
|
||||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
MacOS:
|
||||
runs-on: macos-latest
|
||||
|
|
@ -126,10 +133,17 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get Renderer Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: renderer
|
||||
webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Main Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: main
|
||||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Windows:
|
||||
runs-on: windows-latest
|
||||
|
|
@ -187,7 +201,14 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get Renderer Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: renderer
|
||||
webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Main Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3
|
||||
with:
|
||||
id: main
|
||||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
@ -45,6 +45,10 @@ exports.main = _.compact([
|
|||
plugins: ['ExternalsPlugin'],
|
||||
}),
|
||||
new WebpackBar(),
|
||||
process.env.NODE_ENV === 'production'
|
||||
? // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
new BundleAnalyzerPlugin({ generateStatsFile: true, analyzerMode: 'disabled', statsFilename: '../../out/webpack-stats-main.json' })
|
||||
: undefined,
|
||||
]);
|
||||
|
||||
exports.renderer = _.compact([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue