feat: add dev-firefox build-firefox npm scripts

This commit is contained in:
Hakadao
2023-04-12 18:04:14 +08:00
parent 1663b45597
commit b1ccf3e6fc
3 changed files with 7 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ export const port = parseInt(process.env.PORT || '') || 3303
export const r = (...args: string[]) => resolve(__dirname, '..', ...args)
export const isDev = process.env.NODE_ENV !== 'production'
export const isWin = process.platform === 'win32'
export const isFirefox = process.env.FIREFOX === 'true'
export function log(name: string, message: string) {
console.log(black(bgCyan(` ${name} `)), message)