Consolidate build system and add JS minification (fixes BUG-084)
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
- Removed dead code: templates/pages/ directory and scripts/build-pages.js - Updated build:pages script to use build-html.cjs (the actual build used by Dockerfile) - JS minification now integrated into build-html.cjs for app.js and status.js - HTML files already reference .min.js files - Eliminates dual build system that caused deployment confusion
This commit is contained in:
parent
b476b0bd4e
commit
ca72f04b6b
7 changed files with 1 additions and 1389 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Markdown/HTML to PDF API with built-in invoice templates",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"build:pages": "node scripts/build-pages.js && npx terser public/app.js -o public/app.min.js --compress --mangle",
|
||||
"build:pages": "node scripts/build-html.cjs",
|
||||
"build": "node scripts/generate-openapi.mjs && npm run build:pages && tsc",
|
||||
"start": "node dist/index.js",
|
||||
"dev": "tsx src/index.ts",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue