@simple-reporting/base 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/package.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +3 -3
package/dev/package.json
CHANGED
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -562,13 +562,13 @@ async function buildPdfCustomer(customer) {
|
|
|
562
562
|
} catch (e) {
|
|
563
563
|
console.error(e);
|
|
564
564
|
}
|
|
565
|
-
jsReferences.push(join(
|
|
565
|
+
jsReferences.push(join(customerName, 'custom.js'));
|
|
566
566
|
} catch (e) {}
|
|
567
567
|
|
|
568
568
|
try {
|
|
569
569
|
const cssPath = join(customerTarget, 'custom.css');
|
|
570
570
|
statSync(cssPath);
|
|
571
|
-
cssReferences.push(join(
|
|
571
|
+
cssReferences.push(join(customerName, 'custom.css'));
|
|
572
572
|
} catch (e) {}
|
|
573
573
|
|
|
574
574
|
try {
|
|
@@ -602,7 +602,7 @@ async function buildPdfCustomer(customer) {
|
|
|
602
602
|
})
|
|
603
603
|
|
|
604
604
|
jsReferences.forEach( p => {
|
|
605
|
-
pdfConfig.push(` <userScripts><uri>${nsWowUrl}/${p}</uri></userScripts>`);
|
|
605
|
+
pdfConfig.push(` <userScripts><beforeDocumentScripts>true</beforeDocumentScripts><uri>${nsWowUrl}/${p}</uri></userScripts>`);
|
|
606
606
|
})
|
|
607
607
|
|
|
608
608
|
const pdfConfigContent = pdfXmlStart
|