سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 04:15 UTC
build(pages): emit bundled baseline, business and accounting scripts on production artifact
davoodmehraban89 committed
Oct 13, 2026 at 01:28 UTC
5963527748fa3bb71d55e0966989a2d07110ee9f
1 file changed
+2
scripts/build-pages.mjs
+2
@@ -1,5 +1,6 @@
1
import fs from 'node:fs';
2
import path from 'node:path';
3
+import {bundleFinoraPagesBlockingScripts} from './pages-blocking-bundles.mjs';
4
import {createHash} from 'node:crypto';
5
import vm from 'node:vm';
6
@@ -96,6 +97,7 @@ if(!originalBootstrap.includes(marker))throw new Error('Missing bundle loader fe
97
fs.writeFileSync(bootstrapPath,originalBootstrap.replace(marker,
98
'const FINORA_EXTENSION_BUNDLE_URL="js/finora-extension-bundle.js?v='+bundleHash+'";'));
99
100
+html=bundleFinoraPagesBlockingScripts(html,out);
101
fs.writeFileSync(path.join(out,'index.html'),html);
102
fs.writeFileSync(path.join(out,'js','generated-event-handlers.js'),generated);
103
fs.writeFileSync(path.join(out,'js','generated-dynamic-handlers.js'),dynamic);