forked from liferay/alloy-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.js
45 lines (37 loc) · 865 Bytes
/
webpack.dev.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
/**
* SPDX-FileCopyrightText: © 2014 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
const merge = require('webpack-merge');
const common = require('./webpack.common');
const config = {
devtool: 'inline-source-map',
mode: 'development',
};
const All = merge(common.config, config, {
devServer: {
contentBase: './dist',
host: '0.0.0.0',
port: 9000,
publicPath: '/alloy-editor',
},
output: {
filename: 'alloy-editor-all.js',
},
});
const Core = merge(common.core, config, {
output: {
filename: 'alloy-editor-core.js',
},
});
const NoCKEditor = merge(common.noCkeditor, config, {
output: {
filename: 'alloy-editor-no-ckeditor.js',
},
});
const NoReact = merge(common.noReact, config, {
output: {
filename: 'alloy-editor-no-react.js',
},
});
module.exports = [All, Core, NoCKEditor, NoReact];