Permalink
Browse files

Fix sourcemaps creation for LESS

  • Loading branch information...
1 parent cad1ae2 commit 1ce4825797c99c0bdcc8c7607dc45da10d4fc286 @iamvdo committed Oct 29, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/preprocessor.js
View
@@ -59,7 +59,7 @@ Preprocessor.prototype.less = function () {
var opts = this.options.less;
// set specific options
- if (this.sourcemaps) {
+ if (this.sourcemaps && this.sourcemaps.map) {
opts.filename = this.sourcemaps.from;
opts.sourceMap.sourceMapOutputFilename = this.sourcemaps.to;
// get basepath and rootpath

0 comments on commit 1ce4825

Please sign in to comment.