mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
rename log_level to logLevel and update some of the changelog
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# 1.5.0 WIP
|
||||
|
||||
- sourcemap support
|
||||
- support for import inline option to include css that you do NOT want less to parse e.g. `@import (inline) "file.css";`
|
||||
- better support for modifyVars (refresh styles with new variables, using a file cache), is now more resiliant
|
||||
- support for import reference option to reference external css, but not output it. Any mixin calls or extend's will be output.
|
||||
@@ -13,6 +14,8 @@
|
||||
- Added svg-gradient function
|
||||
- Added no-js option to lessc (in browser, use javascriptEnabled: false) which disallows JavaScript in less files
|
||||
- switched from the little supported and buggy cssmin (previously ycssmin) to clean-css
|
||||
- Browser: added logLevel option to control logging (2 = everything, 1 = errors only, 0 = no logging)
|
||||
- Browser: added errorReporting option which can be "html" (default) or "console" or a function
|
||||
|
||||
# 1.4.2
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ var logLevel = {
|
||||
// 1 - Errors
|
||||
// 0 - None
|
||||
// Defaults to 2
|
||||
less.log_level = typeof(less.log_level) != 'undefined' ? less.log_level : logLevel.info;
|
||||
less.logLevel = typeof(less.logLevel) != 'undefined' ? less.logLevel : logLevel.info;
|
||||
|
||||
// Load styles asynchronously (default: false)
|
||||
//
|
||||
@@ -501,7 +501,7 @@ function getXMLHttpRequest() {
|
||||
}
|
||||
|
||||
function log(str, level) {
|
||||
if (less.env == 'development' && typeof(console) !== 'undefined' && less.log_level >= level) {
|
||||
if (less.env == 'development' && typeof(console) !== 'undefined' && less.logLevel >= level) {
|
||||
console.log('less: ' + str);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ var path = require('path'),
|
||||
fs = require('fs');
|
||||
|
||||
var less = {
|
||||
version: [1, 4, 2],
|
||||
version: [1, 5, 0],
|
||||
Parser: require('./parser').Parser,
|
||||
tree: require('./tree'),
|
||||
render: function (input, options, callback) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "less",
|
||||
"version": "1.4.2",
|
||||
"version": "1.5.0",
|
||||
"description": "Leaner CSS",
|
||||
"homepage": "http://lesscss.org",
|
||||
"author": "Alexis Sellier <self@cloudhead.net>",
|
||||
@@ -22,7 +22,7 @@
|
||||
"test": "./test"
|
||||
},
|
||||
"jam": {
|
||||
"main": "./dist/less-1.4.2.js"
|
||||
"main": "./dist/less-1.5.0.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.4.2"
|
||||
|
||||
Reference in New Issue
Block a user