/
webpack.config.js
53 lines (51 loc) · 949 Bytes
/
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
"use strict";
const webpack = require( "webpack" );
const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
const ModuleConcatenationPlugin = webpack.optimize.ModuleConcatenationPlugin;
module.exports = {
"entry": "./meto.support.js",
"resolve": {
"descriptionFiles": [
"bower.json",
"package.json"
],
"modules": [
"bower_components",
"node_modules"
],
"mainFields": [
"support",
"browser",
"module",
"main"
]
},
"module": {
"rules": [
{
"test": /\.support\.js$/,
"loader": "source-map-loader",
"enforce": "pre"
}
]
},
"output": {
"library": "meto",
"libraryTarget": "umd",
"filename": "meto.deploy.js"
},
"plugins": [
new UglifyJsPlugin( {
"compress": {
"keep_fargs": true,
"keep_fnames": true,
"warnings": false
},
"comments": false,
"sourceMap": true,
"mangle": false
} ),
new ModuleConcatenationPlugin( )
],
"devtool": "#source-map"
};