From 2a603ba183705b2dd7cf95062d0dcb8aed0e373a Mon Sep 17 00:00:00 2001 From: Ifrim Vlad Date: Tue, 5 Jul 2016 11:43:41 +0300 Subject: [PATCH] browserify since version 12.0.0 uses '=' instead of ':' in sourcemap charset, see https://github.com/substack/node-browserify/blob/master/changelog.markdown#1200 --- tasks/lib/sourcemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/sourcemap.js b/tasks/lib/sourcemap.js index 6c36473..69bb2e2 100644 --- a/tasks/lib/sourcemap.js +++ b/tasks/lib/sourcemap.js @@ -146,7 +146,7 @@ exports.init = function(grunt) { var sourceContent; // Browserify, as an example, stores a datauri at sourceMappingURL. - if (/data:application\/json;(charset:utf-8;)?base64,([^\s]+)/.test(sourceMapFile)) { + if (/data:application\/json;(charset[:=]utf-8;)?base64,([^\s]+)/.test(sourceMapFile)) { // Set sourceMapPath to the file that the map is inlined. sourceMapPath = filename; sourceContent = new Buffer(RegExp.$2, 'base64').toString();