Skip to content

Commit 3c6423b

Browse files
build: minify js.
1 parent c0ea525 commit 3c6423b

5 files changed

Lines changed: 551 additions & 4 deletions

File tree

docs/build-and-deploy.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Mode notes:
5656
- `esm`: Current default `build` mode and preferred deploy build mode.
5757
- `jspmGa`: Direct ga.jspm.io URL mode without import-map generation.
5858

59-
`npm run build` runs four steps:
59+
`npm run build` runs five steps:
6060

6161
1. `npm run build:prepare`
6262

@@ -79,7 +79,12 @@ Mode notes:
7979
- Traces generated `dist/prod-imports.js`
8080
- Import specifiers come from `importMap` entries in `src/modules/cdn.js` (`cdnImportSpecs`)
8181

82-
4. `npm run build:html`
82+
4. `npm run build:js`
83+
84+
- Minifies `dist/**/*.js` and `dist/**/*.mjs` with esbuild
85+
- Uses syntax + whitespace minification only (no identifier mangling)
86+
87+
5. `npm run build:html`
8388

8489
- Minifies `dist/index.html` with `html-minifier-terser`
8590

0 commit comments

Comments
 (0)