-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
44 lines (34 loc) · 912 Bytes
/
webpack.config.js
File metadata and controls
44 lines (34 loc) · 912 Bytes
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
const p = require("path");
const webpack = require("webpack");
var current_path = __dirname || "./";
var hwc_conf = require("./webpack.paths");
if (typeof module !== 'undefined' && module.exports) {
// for nodejs environments
var exports = {};
exports.mode = "production";
exports.devtool = 'source-map';
exports.entry = [
hwc_conf.paths.hwc_js_kernel + ".js"
];
exports.output = {
path: current_path + '/dist',
filename: 'hwc-kernel.min.js'
};
exports.resolveLoader = {
modules: [
p.resolve(__dirname, "node_modules"),
"node_modules"
],
};
exports.plugins = [
new webpack.IgnorePlugin(/vertx/)
];
exports.resolve = {
modules: [
p.resolve(__dirname),
"node_modules"
],
alias: hwc_conf.paths
};
module.exports = exports;
}