UNPKG

@daiyu-5577/quickbuild

Version:

front-end build service

16 lines (15 loc) 741 B
import path from 'path'; export let baseRoute = '/quick'; if (process.env.NODE_ENV === 'development') { baseRoute = ''; } export const catchRootPath = path.resolve(process.cwd(), '.quickbuildCatch'); export let webDistPath = path.resolve(process.cwd(), 'dist'); export const catchWebDistPath = path.resolve(catchRootPath, 'webBackup'); export const catchDatabasePath = path.resolve(catchRootPath, 'database'); export const catchHttpLogPath = path.resolve(catchRootPath, 'log'); export const catchBuildLogPath = path.resolve(catchRootPath, 'buildLog'); export const catchImagePath = path.resolve(catchRootPath, 'images'); if (process.env.NODE_ENV === 'development') { webDistPath = new URL('../git/dist', import.meta.url).pathname; }