Remove BOM in imports.

Modified tests to run against a copy of the test files with BOMs inserted
into each .less and .css file (the copies are generated automatically if
the /test/less-bom folder doesn't exist or is empty).
This commit is contained in:
shaun
2015-01-13 19:48:03 -08:00
parent 577afc35bc
commit 7f8026284a
6 changed files with 114 additions and 25 deletions

View File

@@ -68,7 +68,7 @@ module.exports = function(environment) {
var loadFileCallback = function(loadedFile) {
var resolvedFilename = loadedFile.filename,
contents = loadedFile.contents;
contents = loadedFile.contents.replace(/^\uFEFF/, '');
// Pass on an updated rootpath if path of imported file is relative and file
// is in a (sub|sup) directory