-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect you've pushed the dist/*
files by mistakes? Should that be added to the gitignore?
If they are added voluntarily, why?
They were added to check the bundle size in GitHub actions, but we should be able to generate the |
I like this idea, but do we need to rely on a library to do it? const fs = require('fs');
const sizeLimit = 100000;
const bundle = './dist/assets/article.js';
if (fs.statSync(bundle).size > sizeLimit) {
process.exit(1);
} else {
process.exit(0);
} |
That's interesting... I think it does some extra things like gzipping, although we could do this ourselves too. The library had a nice reporter feature to GitHub but I was getting 500s when trying to use it. |
So after doing this it looks like But that's probably worth another pr |
Fail the builds if the client side javascript bundles become too large.