diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-11-12 13:18:59 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-11-16 11:22:20 -0500 |
commit | cf7102c3f1bcbd135f24947a3a3216cff272bdc2 (patch) | |
tree | 6a51615585760bb0831db372c5df93c5d5632277 /Gruntfile.js | |
parent | 78b9eac1198627eb4dad0cc35334c7704449f310 (diff) | |
download | jquery-cf7102c3f1bcbd135f24947a3a3216cff272bdc2.tar.gz jquery-cf7102c3f1bcbd135f24947a3a3216cff272bdc2.zip |
Release: push a custom slim build to the CDN
Fixes gh-2653
Close gh-2711
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index dd4b07d30..626531b29 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -31,6 +31,10 @@ module.exports = function( grunt ) { // But our modules can delete srcHintOptions.onevar; + if ( !grunt.option( "filename" ) ) { + grunt.option( "filename", "jquery.js" ); + } + grunt.initConfig( { pkg: grunt.file.readJSON( "package.json" ), dst: readOptionalJSON( "dist/.destination.json" ), @@ -173,12 +177,14 @@ module.exports = function( grunt ) { uglify: { all: { files: { - "dist/jquery.min.js": [ "dist/jquery.js" ] + "dist/<%= grunt.option('filename').replace('.js', '.min.js') %>": + "dist/<%= grunt.option('filename') %>" }, options: { preserveComments: false, sourceMap: true, - sourceMapName: "dist/jquery.min.map", + sourceMapName: + "dist/<%= grunt.option('filename').replace('.js', '.min.map') %>", report: "min", beautify: { "ascii_only": true |