-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrsbuild.config.mjs
37 lines (37 loc) · 922 Bytes
/
rsbuild.config.mjs
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
35
36
37
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginSvgr } from '@rsbuild/plugin-svgr';
export default defineConfig({
plugins: [pluginReact(), pluginSvgr()],
source: {
entry: {
index: './src/popup/index.tsx',
setting: './src/setting/index.tsx',
background: './src/background/index.ts',
content: './src/content/index.ts',
wordsheet: './src/Wordsheet/index.tsx',
}
},
html: {
template: './public/index.html',
},
performance: {
chunkSplit: {
strategy: 'all-in-one',
},
},
output: {
filenameHash: false,
legalComments: 'none',
distPath: {
js: './', css: './'
},
sourceMap: {
js: 'source-map',
},
targets: ['web'],
copy: [{ from: './manifest.json', to: 'manifest.json' },
{ from: './src/content/content.css', to: 'content.css' },
]
},
});