forked from ethereum/remix-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
57 lines (51 loc) · 1.15 KB
/
webpack.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
const path = require('path')
const common = require('./webpack.common')
// ENGINE
const engine = {
...common,
mode: 'production',
entry: './projects/engine',
output: {
path: path.resolve(__dirname, 'projects/engine/dist'),
filename: 'index.js',
library: 'pluginEngine',
libraryTarget: 'umd',
},
}
// CLIENT
const client = {
...common,
mode: 'production',
entry: './projects/client',
output: {
path: path.resolve(__dirname, 'projects/client/dist'),
filename: 'index.js',
library: 'remixPlugin',
libraryTarget: 'umd',
}
}
// Websocket client
const wsClient = {
...common,
mode: 'production',
entry: './projects/client-ws',
output: {
path: path.resolve(__dirname, 'projects/client-ws/dist'),
filename: 'index.js',
libraryTarget: 'umd',
},
target: 'node'
}
// Websocket client
const iframeClient = {
...common,
mode: 'production',
entry: './projects/client-iframe',
output: {
path: path.resolve(__dirname, 'projects/client-iframe/dist'),
filename: 'index.js',
library: 'iframePlugin',
libraryTarget: 'umd',
}
}
module.exports = [engine, client, wsClient, iframeClient]