MCPcopy
hub / github.com/ys1231/MoveCertificate / build

Function build

webdev/build.mjs:34–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32// ==================== 构建入口 ====================
33
34async function build() {
35 console.log('🔨 开始构建...\n');
36
37 // 第一步:esbuild 打包 JS
38 const jsHash = await buildJS();
39 // 第二步:esbuild 打包 CSS
40 const cssHash = await buildCSS();
41 // 第三步:复制 HTML 并替换引用
42 copyHTML(jsHash, cssHash);
43
44 console.log(`✅ 构建完成 → ${OUT_DIR}/`);
45 console.log(` index.html\n main.${jsHash}.js\n main.${cssHash}.css\n`);
46}
47
48// ==================== JS 打包 + 混淆 ====================
49

Callers 1

build.mjsFile · 0.85

Calls 3

buildJSFunction · 0.85
buildCSSFunction · 0.85
copyHTMLFunction · 0.85

Tested by

no test coverage detected