mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Merge pull request #2637 from SomMeri/empty-source-map-to-empty-file-2430
Undefined source map should result in an empty map file.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user