aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/sourcemap.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/tasks/sourcemap.js')
-rw-r--r--build/tasks/sourcemap.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/build/tasks/sourcemap.js b/build/tasks/sourcemap.js
deleted file mode 100644
index 8b9c248e0..000000000
--- a/build/tasks/sourcemap.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-var fs = require( "fs" );
-
-module.exports = function( grunt ) {
- var config = grunt.config( "minify.all.files" );
- grunt.registerTask( "remove_map_comment", function() {
- var minLoc = grunt.config.process( Object.keys( config )[ 0 ] );
-
- // Remove the source map comment; it causes way too many problems.
- // The map file is still generated for manual associations
- // https://github.com/jquery/jquery/issues/1707
- var text = fs.readFileSync( minLoc, "utf8" )
- .replace( /\/\/# sourceMappingURL=\S+/, "" );
- fs.writeFileSync( minLoc, text );
- } );
-};