mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
add vite build for web
This commit is contained in:
parent
ac682428e6
commit
6463ea937b
4 changed files with 52 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ import { externalizeDepsPlugin, UserConfig } from 'electron-vite';
|
|||
import { resolve } from 'path';
|
||||
import conditionalImportPlugin from 'vite-plugin-conditional-import';
|
||||
import dynamicImportPlugin from 'vite-plugin-dynamic-import';
|
||||
import { ViteEjsPlugin } from 'vite-plugin-ejs';
|
||||
|
||||
const currentOSEnv = process.platform;
|
||||
|
||||
|
|
@ -49,7 +50,7 @@ const config: UserConfig = {
|
|||
localsConvention: 'camelCase',
|
||||
},
|
||||
},
|
||||
plugins: [react()],
|
||||
plugins: [react(), ViteEjsPlugin({ web: false })],
|
||||
resolve: {
|
||||
alias: {
|
||||
'/@/i18n': resolve('src/i18n'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue