Skip to content

Commit

Permalink
feat: esbuild minify outfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ckvv committed Oct 8, 2021
1 parent 7c7f0c9 commit e05b87d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"build:es": "tsc",
"prebuild:es": "rm -rf ./es/*",
"postbuild:es": "npm run build:es:min && npm run build:cjs:min && npm run build:iife:min",
"build:es:min": "esbuild ./es/index.js --bundle --format=esm --outfile=./dist/index.es.js",
"build:cjs:min": "esbuild ./es/index.js --bundle --format=cjs --outfile=./dist/index.cjs.js",
"build:iife:min": "esbuild ./es/index.js --bundle --format=iife --global-name=Parameter --outfile=./dist/index.iife.js",
"build:es:min": "esbuild ./es/index.js --bundle --minify --format=esm --outfile=./dist/index.es.js",
"build:cjs:min": "esbuild ./es/index.js --bundle --minify --format=cjs --outfile=./dist/index.cjs.js",
"build:iife:min": "esbuild ./es/index.js --bundle --minify --format=iife --global-name=Parameter --outfile=./dist/index.iife.js",
"build:cjs": "tsc -p tsconfig-cjs.json",
"prebuild:cjs": "rm -rf ./cjs/*",
"build:docs": "typedoc ./src/index.ts",
Expand Down

0 comments on commit e05b87d

Please sign in to comment.