mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
action 页面同步
This commit is contained in:
@@ -14,11 +14,7 @@ const suffix = ".css.tsx";
|
||||
* @param mode 模式, 开发模式为 dev `vite build --mode dev`
|
||||
* @returns vite.rollupOptions.input 的配置
|
||||
*/
|
||||
export function themeInput(
|
||||
outDir: string,
|
||||
themeDir: string,
|
||||
mode: string
|
||||
): { [key: string]: string } {
|
||||
export function themeInput(outDir: string, themeDir: string, mode: string): { [key: string]: string } {
|
||||
const hash = crypto.randomBytes(6).toString("hex");
|
||||
const tmpDir = `${outDir}/tmp-${hash}`; // 输出目录下的临时目录
|
||||
fs.mkdirSync(tmpDir, { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user