-
Notifications
You must be signed in to change notification settings - Fork 0
/
reboost.js
42 lines (40 loc) · 1.11 KB
/
reboost.js
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
38
39
40
41
42
const {
start,
builtInPlugins: {
UsePlugin,
FilePlugin,
DefaultConfig
}
} = require('reboost');
const ReactRefreshPlugin = require('@reboost/plugin-react-refresh');
const VuePlugin = require('@reboost/plugin-vue');
const SveltePlugin = require('@reboost/plugin-svelte');
start({
entries: [
['./src/main.js', './public/dist/main.js'],
['./src/monaco/index.jsx', './public/dist/monaco.js'],
// ['./src/react/index.jsx', './public/dist/react.js']
],
contentServer: {
root: './public',
open: false
},
// commonJSInterop: {
// mode: 1
// },
plugins: [
UsePlugin({
include: /\.ttf/i,
use: FilePlugin()
}),
UsePlugin({
// The following regex enables fast refresh for files
// with .js, .ts, .jsx or .tsx extensions
// Feel free to use any regex for your files
include: /\.[jt]sx?$/i,
use: ReactRefreshPlugin()
}),
VuePlugin(),
SveltePlugin(),
]
});