Babili CLI
See original GitHub issueCurrently babili-cli is an alias to babel-cli with babili-preset and there is no way to specify babili options via CLI.
So, a new CLI that takes in babili-preset options () and some of babel options - for example - sourcemap support.
Examples:
babili --mangle=false # or babili --no-mangle
babili --mangle.topLevel
babili --mangle.blacklist=Foo,Bar,Baz
babili --unsafe false
babili --unsafe.guards false # for option group
babili --unsafe.typeConstructors.string false # for delegating options to plugins in a group
All the options in Preset Options should be available from the CLI.
File API: (examples)
babili --unsafe=false /path/to/input.js # outputs to STDOUT
babili --unsafe=false --out /path/to/out/dir /path/to/input/dir/*.js # takes multiple arguments
babili --unsafe=false --out /path/to/out --source-map /path/to/input.js # outputs sourcemap
# Option to provide input sourcemap -
# Can be --input-source-map. But need some way to do for multiple files
# Or can just NOT have support for soucemaps for multiple files via CLI
Related:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Babili (babel-minify)
Babili is also modular/flexible (being a Babel preset means it supports user plugins) and can be used as a preset or CLI tool....
Read more >Ember-cli-babili - GitHub
Ember-cli-babili. Minify javascript using babili in Ember-CLI. Install. npm uninstall --save-dev ember-cli-uglify ...
Read more >ember-cli-babili - npm
Minify javascript using babili. Latest version: 0.2.0, last published: 5 years ago. Start using ember-cli-babili in your project by running `npm i ...
Read more >Babili NPM | npm.io
Use babili if you don't already use babel (as a preset) or want to run it standalone. Equivalent to using babel-cli but only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updated the issue with examples.
The preset options are here - https://github.com/babel/babili/blob/master/packages/babel-preset-babili/README.md