Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created October 23, 2018 18:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tbranyen/2e2ccfbef6f33ef435f09087216a8692 to your computer and use it in GitHub Desktop.
Build out ESM, CJS, UMD, Script, UMD Minified, and Script Minified
{
"builds": [{
"input": "lib/**/*.js",
"output": "dist/esm",
"outputType": "module",
"debug": true
}, {
"input": "lib/**/*.js",
"output": "dist/cjs",
"outputType": "commonjs",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.umd.js",
"outputType": "umd",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.js",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.umd.min.js",
"outputType": "umd"
}, {
"input": "lib/index.js",
"output": "dist/sample-library.min.js"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment