Skip to content

Commit

Permalink
Add --define option and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 30, 2019
1 parent b9d853e commit 74fd71b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prog.js
Expand Up @@ -24,6 +24,8 @@ export default handler => {
.option('--external', `Specify external dependencies, or 'none'`)
.option('--globals', `Specify globals dependencies, or 'none'`)
.example('microbundle --globals react=React,jquery=$')
.option('--define', 'Replace constants with hard-coded values')
.example('microbundle --define API_KEY=1234')
.option('--compress', 'Compress output using Terser', null)
.option('--strict', 'Enforce undefined global context and add "use strict"')
.option('--name', 'Specify name exposed in UMD builds')
Expand Down

0 comments on commit 74fd71b

Please sign in to comment.