Commit 719c9a8f by afe1 Committed by GitHub

chore: variables typo (#4658)



* fix: variables

---------

Co-authored-by: afe1 <yunfei.zhu@nwowtec.com>
1 parent a0fbe0b2
...@@ -16,7 +16,7 @@ function defineConfig( ...@@ -16,7 +16,7 @@ function defineConfig(
let projectType = type; let projectType = type;
// 根据包是否存在 index.html,自动判断类型 // 根据包是否存在 index.html,自动判断类型
if (type === 'auto') { if (projectType === 'auto') {
const htmlPath = join(process.cwd(), 'index.html'); const htmlPath = join(process.cwd(), 'index.html');
projectType = existsSync(htmlPath) ? 'application' : 'library'; projectType = existsSync(htmlPath) ? 'application' : 'library';
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!