fix: add os platform value

This commit is contained in:
GyDi
2023-01-14 12:07:31 +08:00
parent 453c230716
commit 1b44ae098c
4 changed files with 23 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ export default defineConfig({
},
},
define: {
OS_PLATFORM: `"${process.platform}"`,
WIN_PORTABLE: !!process.env.VITE_WIN_PORTABLE,
},
});