Code Monkey home page Code Monkey logo

Comments (6)

pdehaan avatar pdehaan commented on June 25, 2024

Current --help output:

$(npm bin)/size-limit -h
/Users/pdehaan/dev/github/mozilla/something-awesome/node_modules/.bin/size-limit

Options:
  --why, -w      Show package content                                  [boolean]
  --version, -v  Show version number                                   [boolean]
  --help, -h     Show help                                             [boolean]

Size Limit will read size-limit section from package.json.
Configurtion example:

  "size-limit": [
    {
      "path": "index.js",
      "limit": "9 KB",
      "babili": true
    }
  ]

from size-limit.

ai avatar ai commented on June 25, 2024

Done #11

from size-limit.

pdehaan avatar pdehaan commented on June 25, 2024

I think #11 only changed the CLI --help documentation. You still may want to mention the babili option in the README.md file. 🤷‍♀️

from size-limit.

ai avatar ai commented on June 25, 2024

@pdehaan should we? There is a "babili" docs for package.json config and it is the main use case for Size Limit.

--babili option needs only when you call size-limit --babili index.es6.js and it is rare case.

from size-limit.

ai avatar ai commented on June 25, 2024

I added "babili": true docs to README.md 1360416

Is it good right now? Does my English is correct? :D.

from size-limit.

pdehaan avatar pdehaan commented on June 25, 2024

Yeah, that looks great, thanks! 😍
I think my issue was that all the projects I was testing on were using ES6 features so I needed that flag.

from size-limit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.