question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currently 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
boopathicommented, Mar 16, 2017

Updated the issue with examples.

1reaction
boopathicommented, Feb 27, 2017
Read more comments on GitHub >

github_iconTop 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 >
babili | Yarn - Package Manager
Fast, reliable, and secure dependency management.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found