-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add bundlesize support to the build cmd #335
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.
Nice! Except for a minor detail, this looks good!
src/build/index.js
Outdated
if (argv.bundlesize) { | ||
return webpack | ||
.then(r => { | ||
return execa('bundlesize', ['-f', './dist/index.min.js', '-s', getUserConfig().bundlesize || '100kB'], { |
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.
What about having a constants.js
for the defaults used in aegir
?
We probably have more default constants such as this 100kB
and it would be easier to have those all together. We can start with this one and move the remaining ones later?
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.
LGTM!
This PR adds a workaround to the windows secrets problem ``` jobs: include: - os: windows filter_secrets: false ``` because we need to give bundlesize a token but we **should be very careful with this**. This disables the log secrets filtering making the token available if you echo the ENV var. In this case is acceptable because the token only has access to commit_status in this repo. needs: [ipfs/aegir#feat/bundle-size](ipfs/aegir#335)
No description provided.