forked from JsSucks/BetterDiscordApp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.all.config.js
28 lines (23 loc) · 993 Bytes
/
webpack.all.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
const path = require('path');
const editor = require('./editor/webpack.config');
editor.output.path = path.resolve('editor', 'dist');
editor.entry = path.resolve('editor', editor.entry);
editor.resolve.alias['vue$'] = path.resolve('node_modules', 'vue', 'dist', 'vue.esm.js');
editor.resolve.modules = [
path.resolve('node_modules'),
path.resolve('common', 'modules')
];
const client = require('./client/webpack.config');
client.output.path = path.resolve('client', 'dist');
client.entry = path.resolve('client', client.entry);
client.resolve.alias['vue$'] = path.resolve('node_modules', 'vue', 'dist', 'vue.esm.js');
client.resolve.modules = [
path.resolve('node_modules'),
path.resolve('common', 'modules'),
path.resolve('client', 'src', 'modules'),
path.resolve('client', 'src', 'ui'),
path.resolve('client', 'src', 'plugins'),
path.resolve('client', 'src', 'structs'),
path.resolve('client', 'src', 'builtin')
];
module.exports = [editor, client];