Pass silent and verbose flags to evalEnv.

This commit is contained in:
Daniel Stockman
2013-02-19 11:31:40 -08:00
committed by Luke Page
parent a5b653af70
commit b9bc6e73a0
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ var options = {
yuicompress: false,
optimization: 1,
silent: false,
verbose: false,
lint: false,
paths: [],
color: true,
@@ -173,6 +174,8 @@ var parseLessFile = function (e, data) {
} else if(!options.lint) {
try {
var css = tree.toCSS({
silent: options.silent,
verbose: options.verbose,
ieCompat: options.ieCompat,
compress: options.compress,
yuicompress: options.yuicompress,

View File

@@ -34,6 +34,8 @@
};
var evalCopyProperties = [
'silent', // whether to swallow errors and warnings
'verbose', // whether to log more activity
'compress', // whether to compress
'ieCompat', // whether to enforce IE compatibility (IE8 data-uri)
'strictMaths', // whether maths has to be within parenthesis