-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfuse-prod.ts
More file actions
39 lines (33 loc) · 774 Bytes
/
fuse-prod.ts
File metadata and controls
39 lines (33 loc) · 774 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
35
36
37
38
39
import { fusebox, pluginLink } from 'fuse-box';
const fuse = fusebox({
entry: ['src/index.ts'],
target: 'browser',
webIndex: {
template: './index.html',
publicPath: './',
},
sourceMap: false,
});
fuse.runProd()
// const fuse2 = fusebox({
// entry: ['src/sound-processor.ts'],
// compilerOptions: {
// }
// target: 'browser',
// devServer: false,
// webIndex: false,
// sourceMap: {
// vendor: false,
// project: true,
// },
// });
// fuse2.runDev({ bundles: { distRoot: 'dist/', app: 'sound-processor.js' } })
// fuse.runDev({
// bundles: {
// app: './app.$hash.js',
// vendor: './vendor.$hash.js',
// mapping: [
// { matching: 'sound-processor*', target: 'sound-processor.js' },
// ]
// },
// });