-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathvite.renderer.web.config.ts
More file actions
33 lines (32 loc) · 921 Bytes
/
Copy pathvite.renderer.web.config.ts
File metadata and controls
33 lines (32 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import path from 'node:path'
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'vite'
import packageJson from './package.json' with { type: 'json' }
export default defineConfig({
base: '/',
plugins: [tailwindcss()],
define: {
__MOTRIX_TARGET__: JSON.stringify('web'),
__MOTRIX_PREVIEW_MAC_MENU__: JSON.stringify(false),
__MOTRIX_APP_METADATA__: JSON.stringify({
name: packageJson.productName,
version: packageJson.version,
author: packageJson.author,
license: packageJson.license,
}),
},
build: {
outDir: 'dist/renderer-web',
emptyOutDir: true,
},
resolve: {
alias: {
'@shared': path.resolve(import.meta.dirname, 'src/shared'),
'@renderer': path.resolve(import.meta.dirname, 'src/renderer'),
path: path.resolve(
import.meta.dirname,
'src/renderer/lib/path-browser-shim.ts'
),
},
},
})