-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Hello everyone, just like issue #42 I wanted to run the bundle analysis in the app directory.
I modified the script to make it work with it instead of pages dir. I didn't bother make it work for both scenarios because I only use appdir.
Here's how you can have it too :
First, install the required dependencies:
yarn add -D gzip-size@6 mkdirp
Then, you need to copy this gist : https://gist.github.com/raphaelbadia/1fbc948928378a4ce0e1ce90923263ae to a file in your repository. I called it report-bundle-size.js
Finally, open your nextjs_bundle_analysis.yml, find the action with name "- name: Analyze bundle" and replace npx -p nextjs-bundle-analysis report by node report-bundle-size.js
Cheers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
