@slidev/cli 0.49.29 → 0.50.0-beta.2
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-2WDSCT4J.js → build-EZGSYF7Q.js} +6 -7
- package/dist/{chunk-IVWMFGB5.js → chunk-DB2KJXEE.js} +1 -1
- package/dist/{chunk-YP37OZJY.js → chunk-TEOA76MP.js} +967 -928
- package/dist/cli.js +18 -20
- package/dist/{export-FTRUCBWA.js → export-WMRLKOJP.js} +7 -7
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -4
- package/package.json +27 -28
- package/template.md +0 -2
- package/dist/chunk-6DS3IPOB.js +0 -31
- package/dist/markdown-it-prism-P475G4NP.js +0 -107
- package/dist/{chunk-HOVIRHCR.js → chunk-UNQ5DBLZ.js} +6 -6
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveViteConfigs
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-HOVIRHCR.js";
|
|
3
|
+
} from "./chunk-TEOA76MP.js";
|
|
4
|
+
import "./chunk-UNQ5DBLZ.js";
|
|
6
5
|
|
|
7
6
|
// node/commands/build.ts
|
|
8
|
-
import { resolve } from "node:path";
|
|
9
7
|
import http from "node:http";
|
|
10
|
-
import
|
|
11
|
-
import { build as viteBuild } from "vite";
|
|
8
|
+
import { resolve } from "node:path";
|
|
12
9
|
import connect from "connect";
|
|
10
|
+
import fs from "fs-extra";
|
|
13
11
|
import sirv from "sirv";
|
|
12
|
+
import { build as viteBuild } from "vite";
|
|
14
13
|
async function build(options, viteConfig = {}, args) {
|
|
15
14
|
const indexPath = resolve(options.userRoot, "index.html");
|
|
16
15
|
let originalIndexHTML;
|
|
@@ -51,7 +50,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
51
50
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
52
51
|
`, "utf-8");
|
|
53
52
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
54
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
53
|
+
const { exportSlides, getExportOptions } = await import("./export-WMRLKOJP.js");
|
|
55
54
|
const port = 12445;
|
|
56
55
|
const app = connect();
|
|
57
56
|
const server = http.createServer(app);
|