aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/dist.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/tasks/dist.js')
-rw-r--r--build/tasks/dist.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/tasks/dist.js b/build/tasks/dist.js
index 78ce2f254..fa6920c88 100644
--- a/build/tasks/dist.js
+++ b/build/tasks/dist.js
@@ -2,11 +2,12 @@ module.exports = function( grunt ) {
"use strict";
- var fs = require( "fs" ),
+ var fs = require( "fs" ),
+ filename = grunt.option( "filename" ),
distpaths = [
- "dist/jquery.js",
- "dist/jquery.min.map",
- "dist/jquery.min.js"
+ "dist/" + filename,
+ "dist/" + filename.replace( ".js", ".min.map" ),
+ "dist/" + filename.replace( ".js", ".min.js" )
];
// Process files for distribution