2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Gettings tests passing for IE9

This commit is contained in:
Matt Zabriskie
2016-03-09 16:17:10 -07:00
parent dcbb352262
commit 4d2f9c21d4
4 changed files with 19 additions and 5 deletions
+8 -2
View File
@@ -22,15 +22,21 @@ function generateConfig(name) {
],
devtool: 'source-map'
};
config.plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
];
if (uglify) {
config.plugins = [
config.plugins.push(
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false
}
})
];
);
}
return config;