@slidev/cli 0.49.23 → 0.49.25
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/dist/{build-ZPFNOFW5.js → build-PW7D5MRO.js} +3 -4
- package/dist/{chunk-N256MP4I.js → chunk-A5KTDQ7I.js} +1 -1
- package/dist/{chunk-XYLYAM2E.js → chunk-UL5AC2R7.js} +275 -242
- package/dist/cli.js +8 -5
- package/dist/{export-F3V7NX5E.js → export-SZDV4AEI.js} +14 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +24 -24
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
getIndexHtml,
|
|
3
2
|
resolveViteConfigs
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UL5AC2R7.js";
|
|
5
4
|
import "./chunk-6DS3IPOB.js";
|
|
6
5
|
import "./chunk-HOVIRHCR.js";
|
|
7
6
|
import "./chunk-JSBRDJBE.js";
|
|
@@ -18,7 +17,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
18
17
|
let originalIndexHTML;
|
|
19
18
|
if (fs.existsSync(indexPath))
|
|
20
19
|
originalIndexHTML = await fs.readFile(indexPath, "utf-8");
|
|
21
|
-
await fs.writeFile(indexPath,
|
|
20
|
+
await fs.writeFile(indexPath, options.utils.indexHtml, "utf-8");
|
|
22
21
|
let config = void 0;
|
|
23
22
|
try {
|
|
24
23
|
const inlineConfig = await resolveViteConfigs(
|
|
@@ -53,7 +52,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
53
52
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
54
53
|
`, "utf-8");
|
|
55
54
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
56
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
55
|
+
const { exportSlides, getExportOptions } = await import("./export-SZDV4AEI.js");
|
|
57
56
|
const port = 12445;
|
|
58
57
|
const app = connect();
|
|
59
58
|
const server = http.createServer(app);
|