forked from beautifier/js-beautify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
52 lines (45 loc) · 1.08 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
var path = require('path');
var legacy_js = {
entry: './js/src/javascript/index.js',
resolve: {
modules: [ path.resolve(__dirname, "js/src") ]
},
output: {
library: 'legacy_beautify_js',
filename: 'legacy_beautify_js.js',
path: path.resolve(__dirname, 'dist')
}
};
var legacy_css = {
entry: './js/src/css/index.js',
resolve: {
modules: [ path.resolve(__dirname, "js/src") ]
},
output: {
library: 'legacy_beautify_css',
filename: 'legacy_beautify_css.js',
path: path.resolve(__dirname, 'dist')
}
};
var legacy_html = {
entry: './js/src/html/index.js',
resolve: {
modules: [ path.resolve(__dirname, "js/src") ]
},
output: {
library: 'legacy_beautify_html',
filename: 'legacy_beautify_html.js',
path: path.resolve(__dirname, 'dist')
}
};
var dist_full = {
entry: './js/src/index.js',
output: {
library: 'beautifier',
libraryTarget: 'umd',
umdNamedDefine: true,
filename: 'beautifier.js',
path: path.resolve(__dirname, 'dist')
}
};
module.exports = [dist_full, legacy_js, legacy_css, legacy_html];