Skip to content

Commit aefe94d

Browse files
committed
Fix grunt-contrib-uglify producing wrong source map filename
1 parent 0075d64 commit aefe94d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Gruntfile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ module.exports = function(grunt) {
168168

169169
uglify: {
170170
options: {
171-
sourceMap: function (dest) {
171+
sourceMap: true,
172+
sourceMapName: function (dest) {
172173
return path.join(path.dirname(dest),
173174
path.basename(dest, '.js')) +
174175
'.map';
175176
},
176-
sourceMappingURL: function (dest) {
177-
return path.basename(dest, '.js') + '.map';
178-
},
177+
179178
// Only preserve comments that start with (!)
180179
preserveComments: /^!/,
181180
compress: {

0 commit comments

Comments
 (0)