All Projects → bundlewatch → Bundlewatch

bundlewatch / Bundlewatch

Licence: mit
Keep watch of your bundle size

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Bundlewatch

Changelog Ci
Changelog CI is a GitHub Action that generates changelog, Then the changelog is committed and/or commented to the release Pull request.
Stars: ✭ 68 (-71.78%)
Mutual labels:  pull-requests, continuous-integration
prlint
GitHub App for linting pull request meta data
Stars: ✭ 122 (-49.38%)
Mutual labels:  continuous-integration, pull-requests
Webpack Chain
A chaining API to generate and simplify the modification of Webpack configurations.
Stars: ✭ 2,821 (+1070.54%)
Mutual labels:  webpack
Vbuild
"Compile" your VueJS components (sfc/*.vue) to standalone html/js/css ... python only (no need of nodejs). Support python components too !
Stars: ✭ 236 (-2.07%)
Mutual labels:  webpack
React Ant
(基于pro 2.0)基于Ant Design Pro 的 (多标签页tabs、拖拽、富文本、拾色器、多功能table、多选Select)
Stars: ✭ 231 (-4.15%)
Mutual labels:  webpack
React Svg Inline
DEPRECATED, I recommend you the tool SVGR
Stars: ✭ 230 (-4.56%)
Mutual labels:  webpack
Modular Css
A streamlined reinterpretation of CSS Modules via CLI, API, Browserify, Rollup, Webpack, or PostCSS
Stars: ✭ 234 (-2.9%)
Mutual labels:  webpack
Vue I18n Loader
🌐 vue-i18n loader for custom blocks
Stars: ✭ 229 (-4.98%)
Mutual labels:  webpack
Harold
Compares frontend project bundles
Stars: ✭ 241 (+0%)
Mutual labels:  webpack
One Loader
Single-file components for React
Stars: ✭ 233 (-3.32%)
Mutual labels:  webpack
Github Issue Templates
🔣 A collection of GitHub issue and pull request templates
Stars: ✭ 3,074 (+1175.52%)
Mutual labels:  pull-requests
Connect Api Mocker
Connect middleware that creates mocks for REST APIs
Stars: ✭ 232 (-3.73%)
Mutual labels:  webpack
Wpk
a friendly, intuitive & intelligent CLI for webpack
Stars: ✭ 232 (-3.73%)
Mutual labels:  webpack
Critters
🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.
Stars: ✭ 2,894 (+1100.83%)
Mutual labels:  webpack
Fast Sass Loader
High performance sass loader for webpack
Stars: ✭ 229 (-4.98%)
Mutual labels:  webpack
Webpack Messages
Beautifully format Webpack messages throughout your bundle lifecycle(s)!
Stars: ✭ 238 (-1.24%)
Mutual labels:  webpack
Ol3echarts
🌏 📊 ol3Echarts | a openlayers extension to echarts
Stars: ✭ 229 (-4.98%)
Mutual labels:  webpack
Kit
ReactQL starter kit (use the CLI)
Stars: ✭ 232 (-3.73%)
Mutual labels:  webpack
Webpack
📜Some of the node tutorial -《Webpack学习笔记》
Stars: ✭ 234 (-2.9%)
Mutual labels:  webpack
Lit Vue
🔥 Vue SFC goodies directly in JavaScript files.
Stars: ✭ 241 (+0%)
Mutual labels:  webpack


npm bundlewatch All Contributors

node deps dev-deps builds test


npm-chart contributors license

BundleWatch

BundleWatch checks file sizes, ensuring bundled browser assets don't jump in file size.
Sharp increases in BundleWatch can signal that something is wrong - adding a package that bloats the slug, a wrong import, or forgetting to minify.

Inspired by Siddharth Kshetrapal bundlesize

Getting Started

Install the BundleWatch package:

  • NPM: npm install bundlewatch --save-dev
  • Yarn: yarn add bundlewatch --dev

Add some basic configuration to your package.json

{
    "name": "my package name",
    "version": "0.0.1",
    "bundlewatch": {
        "files": [
            {
                "path": "myfolder/*.js",
                "maxSize": "100kB"
            }
        ]
    }
}

Usage:

  • NPM: npm run bundlewatch
  • Yarn: yarn run bundlewatch

This will give you command line output. If you want BundleWatch to report build status on your pull requests, see below.

Adding Build Status

BundleWatch can report its status on your GitHub Pull Requests.

build status preview

CI Auth Variables Needed by BundleWatch

  • BUNDLEWATCH_GITHUB_TOKEN

You will need to give BundleWatch access to your GitHub Statuses, which can be done by heading to: https://service.bundlewatch.io/setup-github

This will give you your BUNDLEWATCH_GITHUB_TOKEN. You will need to set this as an environment variable in CI.

CI Variables Needed by BundleWatch

The most efficient way to get this running is to ensure that some environment variables are available for BundleWatch to find.

  • CI_REPO_OWNER github.com/facebook/react
  • CI_REPO_NAME github.com/facebook/react
  • CI_COMMIT_SHA
  • CI_BRANCH

If you're using, Travis, CircleCI, Wrecker, Drone or GitHub Actions these should all work out of the box.

Have a look at the source code to see which variables are automatically found: getCIVars

Viewing the results breakdown

After setting up the above you will have BuildStatus on your Pull Requests. Clicking the details link on the reported status will show you a results file breakdown.

build results preview

Additional Documentation

Full documentation available on bundlewatch.io

I use bundlesize, why should I switch to BundleWatch

  • Bundlesize has entered maintenance mode and pull requests are left hanging, so we wanted to reboot the community through creating BundleWatch
  • New BundleWatch service with infrastructure as code
  • Launched bundlewatch.io documentation website
  • Enough test coverage to support CD
  • Node API Support
  • Lower barrier to contributing (automated testing and publishing), build a trusted community of contributors to have continuous improvement

Additional Features

  • [x] Config validation to stop users from guessing why BundleWatch won't work
  • [x] Support for config file path
  • [x] Better results breakdown page
  • [x] Better comparisons between branches, support branches other than master
  • [x] Support for your own server for storing data
  • [x] New and improved CI behaviour
  • [ ] Show history of BundleWatchs over time (coming soon)

Contributors

Thanks goes to these wonderful people (emoji key):


Jake Bolam

💻

Shouvik DCosta

💻

Tyler Benning

🎨

Leila Rosenthal

📖

Francois Campbell

💻

Emmanuel Ogbizi

🚧 💻 🛡️

Pascal Iske

🐛

Oleksii Leonov

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Want to Help? Become a Contributor

Contributions of any kind are welcome! See the Contributing docs or Join us on Slack.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].