xshell 1.0.136 → 1.0.138
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/builder.js +3 -3
- package/package.json +1 -1
package/builder.js
CHANGED
|
@@ -446,7 +446,7 @@ export class Bundler {
|
|
|
446
446
|
await Promise.all([
|
|
447
447
|
this.build(print),
|
|
448
448
|
this.copy_files({ print: { info: print, files: false } }),
|
|
449
|
-
this.target === 'web' && this.build_htmls({ info: print, files: false })
|
|
449
|
+
this.target === 'web' && this.htmls && this.build_htmls({ info: print, files: false })
|
|
450
450
|
]);
|
|
451
451
|
}
|
|
452
452
|
async build_all_and_close(print = true) {
|
|
@@ -468,8 +468,8 @@ export class Bundler {
|
|
|
468
468
|
" <meta charset='utf-8' />\n" +
|
|
469
469
|
(heads ? heads.map(head => ` ${head}`).join_lines() : '') +
|
|
470
470
|
(device_width ? " <meta name='viewport' content='width=device-width, initial-scale=1.0' />\n" : '') +
|
|
471
|
-
(icon ? ` <link rel='icon' href='${path.relative(`${this.fpd_out}${fp_html}
|
|
472
|
-
(manifest ? ` <link rel='manifest' href='${path.relative(`${this.fpd_out}${fp_html}
|
|
471
|
+
(icon ? ` <link rel='icon' href='${path.relative(`${this.fpd_out}${fp_html}`.fdir, `${this.fpd_out}${typeof icon === 'string' ? icon : icon.out}`)}' />\n` : '') +
|
|
472
|
+
(manifest ? ` <link rel='manifest' href='${path.relative(`${this.fpd_out}${fp_html}`.fdir, `${this.fpd_out}${typeof manifest === 'string' ? manifest : manifest.out}`)}' />\n` : '') +
|
|
473
473
|
this.resolve_dependency_files(_dependencies, false, { production: this.production }).map(fp => ` <script src='./vendors/${fp}' defer></script>`).join_lines() +
|
|
474
474
|
(scripts?.before ? scripts.before.map(fp => ` <script src='${fp}' defer></script>`).join_lines() : '') +
|
|
475
475
|
(mscripts ? mscripts.map(fp => ` <script src='${fp}' type='module'></script>`).join_lines() : '') +
|