mirror of
https://github.com/planetrenox/inzerosight.git
synced 2026-09-18 10:05:44 +00:00
Use vite --mode for target selection
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import fs from 'node:fs';
|
||||
|
||||
const target = process.env.TARGET || 'firefox';
|
||||
|
||||
export default defineConfig(async () => {
|
||||
export default defineConfig(async ({ mode }) => {
|
||||
const target = process.env.TARGET || (['chrome', 'firefox', 'web'].includes(mode) ? mode : 'chrome');
|
||||
const plugins = [];
|
||||
|
||||
if (target !== 'web') {
|
||||
|
||||
Reference in New Issue
Block a user