mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Add --define option and usage
This commit is contained in:
parent
b9d853eb50
commit
74fd71b6fc
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user