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:
+8
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user