less-loader
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -94,3 +94,5 @@ /* | ||
} catch(e) { | ||
loaderContext.callback(formatLessLoaderError(e, filename)); | ||
if(!errored) | ||
loaderContext.callback(formatLessLoaderError(e, filename)); | ||
errored = true; | ||
} | ||
@@ -108,2 +110,3 @@ } | ||
}, function(e, result) { | ||
if(errored) return; | ||
if(e) return resultcb(formatLessRenderError(e)); | ||
@@ -110,0 +113,0 @@ resultcb(null, result); |
{ | ||
"name": "less-loader", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "less loader module for webpack", |
@@ -84,2 +84,21 @@ "use strict"; | ||
test("should transform urls to files above the sibling directory", "folder2/url-path"); | ||
it("should report error correctly", function(done) { | ||
webpack({ | ||
entry: path.resolve(__dirname, "../index.js") + "!" + | ||
path.resolve(__dirname, "./less/error.less"), | ||
output: { | ||
path: __dirname + "/output", | ||
filename: "bundle.js" | ||
} | ||
}, function(err, stats) { | ||
if(err) throw err; | ||
var json = stats.toJson(); | ||
json.warnings.should.be.eql([]); | ||
json.errors.length.should.be.eql(1); | ||
var theError = json.errors[0]; | ||
theError.should.match(/not-existing/); | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14458
27
338