Skip to content
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

Use cosmic config to allow config to be in an external file #316

Merged
merged 9 commits into from
Jun 29, 2019

Conversation

siddharthkp
Copy link
Owner

@siddharthkp siddharthkp commented Jun 28, 2019

You can now keep the config in a separate file if you want - bundlesize.config.js

Format:

{
  "files": [
    {
      "path": "./dist.js",
      "maxSize": "3 kB"
    }
  ]
}

If you do not want to crowd your root directory, you can mention a different path:

bundlesize --config configs/bundlesize.json

Check rendered README for the updated docs.

README.md Outdated Show resolved Hide resolved
@siddharthkp siddharthkp requested a review from Haroenv June 28, 2019 09:17
Copy link
Collaborator

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice new changes in the readme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Road to 1.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants