From 74fd71b6fcd7b1374ef285bec509ea2b617a4ec7 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Wed, 30 Jan 2019 16:28:47 -0500 Subject: [PATCH] Add --define option and usage --- src/prog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prog.js b/src/prog.js index 59bdc4e..fd51c83 100644 --- a/src/prog.js +++ b/src/prog.js @@ -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')