mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
perf: 使用/** */替换//注释,对编辑器的智能提示更友好
This commit is contained in:
@@ -5,15 +5,15 @@ import { warpperEnv, regExps } from "./build";
|
||||
import { getPluginsList } from "./build/plugins";
|
||||
import { UserConfigExport, ConfigEnv, loadEnv } from "vite";
|
||||
|
||||
// 当前执行node命令时文件夹的地址(工作目录)
|
||||
/** 当前执行node命令时文件夹的地址(工作目录) */
|
||||
const root: string = process.cwd();
|
||||
|
||||
// 路径查找
|
||||
/** 路径查找 */
|
||||
const pathResolve = (dir: string): string => {
|
||||
return resolve(__dirname, ".", dir);
|
||||
};
|
||||
|
||||
// 设置别名
|
||||
/** 设置别名 */
|
||||
const alias: Record<string, string> = {
|
||||
"/@": pathResolve("src"),
|
||||
"@build": pathResolve("build")
|
||||
|
||||
Reference in New Issue
Block a user