Permalink
Browse files

Workaround for conditional compilation IE bug

  • Loading branch information...
1 parent a6971bd commit 6b7993968c3b4beafc6f602a92ff0b4260a77697 @jamesallardice committed Jan 24, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 tasks/append-sourcemapping.js
View
@@ -1,7 +1,7 @@
{
"name": "grunt-append-sourcemapping",
"description": "Grunt task to append a JavaScript sourcemapping URL comment",
- "version": "0.0.1",
+ "version": "0.0.2",
"author": {
"name": "James Allardice",
"email": "admin@jamesallardice.com"
@@ -9,7 +9,7 @@ module.exports = function (grunt) {
var done = this.async(),
files = this.data.files;
async.forEach(Object.keys(files), function (file, callback) {
- fs.appendFile(file, "//@ sourceMappingURL=" + files[file], callback);
+ fs.appendFile(file, "/*\n//@ sourceMappingURL=" + files[file] + "\n*/", callback);
}.bind(this), done);
});

1 comment on commit 6b79939

@lexoyo
lexoyo commented on 6b79939 Dec 29, 2014

it looks like this makes the sourcemap fail in chrome

Please sign in to comment.