mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Pass silent and verbose flags to evalEnv.
This commit is contained in:
committed by
Luke Page
parent
a5b653af70
commit
b9bc6e73a0
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user