Add webpack build

This commit is contained in:
Sidharth Vinod 2022-09-02 00:36:01 +05:30
parent 6be05e9948
commit 53fe35e37e
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
"clean": "rimraf dist",
"build:code": "node .esbuild/esbuild.cjs",
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
"build:webpack": "webpack --mode production --progress --color",
"build": "yarn clean; concurrently \"yarn build:code\" \"yarn build:types\"",
"postbuild": "documentation build src/mermaidAPI.ts src/config.ts src/defaultConfig.ts --shallow -f md --markdown-toc false > docs/Setup.md",
"build:watch": "yarn build:code --watch",