-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.test.js
More file actions
58 lines (55 loc) · 1019 Bytes
/
webpack.test.js
File metadata and controls
58 lines (55 loc) · 1019 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"use strict";
const webpack = require( "webpack" );
const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
const ModuleConcatenationPlugin = webpack.optimize.ModuleConcatenationPlugin;
module.exports = {
"entry": "./test.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": "test",
"libraryTarget": "umd",
"filename": "test.deploy.js"
},
"plugins": [
new ModuleConcatenationPlugin( ),
new UglifyJsPlugin( {
"compress": {
"keep_fargs": true,
"keep_fnames": true,
"keep_infinity": true,
"warnings": false,
"passes": 3
},
"mangle": {
"keep_fnames": true
},
"comments": false,
"sourceMap": true
} )
],
"devtool": "#source-map"
};