-
Notifications
You must be signed in to change notification settings - Fork 4
/
vue.config.js
63 lines (61 loc) · 1.7 KB
/
vue.config.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const path = require('path')
var webpack = require('webpack')
module.exports = {
configureWebpack: {
entry: path.join(__dirname, 'src', 'renderer', 'main.ts'),
plugins: [
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/Image\.ts/,
'web/Image.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/brotli\.ts/,
'web/brotli.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/db\.ts/,
'web/db.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/MixClient\.ts/,
'web/MixClient.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/IpfsClient\.ts/,
'web/IpfsClient.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/clipboard\.ts/,
'web/clipboard.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/setTitle\.ts/,
'web/setTitle.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/lib\/transcoder\.ts/,
'web/transcoder.ts'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/renderer\/components\/routes\/Mining\.vue/,
'web/Mining.vue'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/renderer\/components\/mixins\/VideoEdit\.vue/,
'web/VideoEdit.vue'
),
new webpack.NormalModuleReplacementPlugin(
/\/src\/renderer\/components\/mixins\/VideoView\.vue/,
'web/VideoView.vue'
),
]
},
chainWebpack: config => {
config.module
.rule('raw')
.test(/\.bin$/)
.use('raw-loader')
.loader('raw-loader')
.end()
}
}