forked from Kong/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.config.ie11.js
More file actions
48 lines (47 loc) · 1.04 KB
/
webpack.config.ie11.js
File metadata and controls
48 lines (47 loc) · 1.04 KB
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
var path = require('path');
var webpack = require('webpack');
var UnminifiedWebpackPlugin = require('unminified-webpack-plugin');
module.exports = {
entry: './browser.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'httpsnippet.browser.ie11.min.js',
library: 'HTTPSnippet'
},
module: {
loaders: [
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.js$/,
loader: 'webpack-replace',
query: {
replace: [
{
from: 'MultiPartForm',
to: 'FormData'
}, {
from: "var es = require('event-stream')",
to: ''
},
// Dirty & temporary fix for har-validator/lib/async compatibility issues.
{
from: 'throw err',
to: ''
}
]
}
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new UnminifiedWebpackPlugin()
]
};