-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrsbuild.config.ts
More file actions
34 lines (33 loc) · 836 Bytes
/
Copy pathrsbuild.config.ts
File metadata and controls
34 lines (33 loc) · 836 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
34
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import pkg from './package.json';
export default defineConfig({
source: {
define: {
'process.env.APP_VERSION': JSON.stringify(pkg.version),
'process.env.GITHUB_PAGES': JSON.stringify(!!process.env.GITHUB_PAGES),
},
},
output: {
assetPrefix: process.env.GITHUB_PAGES ? '/RcloneX/' : '/',
sourceMap: {
js: 'source-map',
},
},
html: {
template: './public/index.html',
favicon: './src/assets/appIcon.png',
meta: {
description: 'A fast、beautify UI of Rclone ',
},
},
resolve: {
alias: {
'@': './src',
'@pages': './src/pages',
'@components': './src/components',
'@utils': './src/shared/utils',
},
},
plugins: [pluginReact()],
});