2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Fixing minification

This commit is contained in:
Matt Zabriskie
2014-08-28 13:13:31 -06:00
parent 960a583d56
commit 6bd8c3a493
9 changed files with 21 additions and 2453 deletions
+11 -4
View File
@@ -63,24 +63,31 @@ module.exports = function(grunt) {
output: {
path: 'dist/',
filename: 'axios.js',
sourceMapFilename: 'axios.map',
library: 'axios'
},
devtool: '#inline-source-map'
devtool: 'source-map'
};
['amd', 'global'].forEach(function (key) {
webpackConfig[key] = JSON.parse(JSON.stringify(webpackBase));
webpackConfig[key + '-min'] = JSON.parse(JSON.stringify(webpackBase));
webpackConfig[key + '-min'].pugins = [
new webpack.optimize.UglifyJsPlugin()
];
// TODO: UglifyJsPlugin doesn' work, but optimize.minimize is deprecated
webpackConfig[key + '-min'].optimize = {minimize: true};
// webpackConfig[key + '-min'].pugins = [
// new webpack.optimize.UglifyJsPlugin()
// ];
});
webpackConfig['amd'].output.filename = 'axios.amd.js';
webpackConfig['amd'].output.sourceMapFilename = 'axios.amd.map';
webpackConfig['amd'].output.libraryTarget = 'amd';
webpackConfig['amd-min'].output.filename = 'axios.amd.min.js';
webpackConfig['amd-min'].output.sourceMapFilename = 'axios.amd.min.map';
webpackConfig['amd-min'].output.libraryTarget = 'amd';
webpackConfig['global-min'].output.filename = 'axios.min.js';
webpackConfig['global-min'].output.sourceMapFilename = 'axios.min.map';
return webpackConfig;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+2 -1223
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+2 -1224
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long