Skip to content

Commit

Permalink
Merge pull request #2637 from SomMeri/empty-source-map-to-empty-file-…
Browse files Browse the repository at this point in the history
…2430

Undefined source map should result in an empty map file.
  • Loading branch information
lukeapage committed Jul 19, 2015
2 parents 3178103 + ce4a7bc commit ff5e5a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ module.exports = function (grunt) {
// Run all tests
grunt.registerTask('test', testTasks);

// Run all tests
grunt.registerTask('quicktest', testTasks.slice(0, testTasks.length -1));

// generate a good test environment for testing sourcemaps
grunt.registerTask('sourcemap-test', [
'clean:sourcemap-test',
Expand Down
1 change: 1 addition & 0 deletions bin/lessc
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ function printUsage() {

if (!sourceMapFileInline) {
var writeSourceMap = function(output, onDone) {
output = output || "";
var filename = sourceMapOptions.sourceMapFullFilename;
ensureDirectory(filename);
fs.writeFile(filename, output, 'utf8', function (err) {
Expand Down

0 comments on commit ff5e5a0

Please sign in to comment.