Commit Graph

34 Commits

Author SHA1 Message Date
Luke Page
5c41f72fa9 add clean css options parameter and option. fixes #1721 2013-12-08 10:52:06 +00:00
Luke Page
355cd7488e rename the sourcemappingurl to sourcemapurl, add to bin/lessc and adjust to not normalize 2013-11-17 16:26:47 +00:00
Christian Hammond
daec7dff1c Support specifying custom variables when calling lessc and less.js.
Both lessc and less.js can now be provided with global variables that
all .less files will have immediate access to. This can be used to
provide, for example, a base path for an @import, signed URLs offering
temporary access to an image on S3, or anything else.

lessc has two new parameters, --global-var and --modify-var. Both take
a value of the form "varname=value". --global-var declares variables
immediately before the content of the .less files, and --modify-var
declares them after.

--global-var is used when rules, imports, or other variables will depend
on the provided variable.

--modify-var is used to override a variable declared within the .less
file.

less.js's equivalent for global variables is less.globalVars. This can
be set before loading less.js. There is no new requivalent to
--modify-var, as less.modifyVars can be used for that purpose.
2013-11-14 02:58:34 -08:00
Luke Page
7a978cd28f make the inline option more obvious. fixes #1603 2013-10-17 17:50:48 +01:00
Luke Page
62751c917c support inline css files in the sourcemaps 2013-09-17 19:37:00 +01:00
picomancer
a6cdb81b30 Replace deprecated sys.puts with console.log, resolve #1529 2013-09-16 18:32:29 -04:00
Luke Page
0a70eded8b Merge pull request #1543 from andjo/sourcemap-options
Sourcemap basepath option
2013-09-14 03:22:40 -07:00
Luke Page
6eb992a775 Merge pull request #1412 from christopherobin/master
Allow imports from self-signed SSL hosts
2013-09-11 05:01:53 -07:00
Anders Johansson
5ef2ff1707 Added --source-map-basepath option 2013-09-11 13:48:07 +02:00
Hector G. Parra
3918f940d0 Report bugs to: http://github.com/less/less.js/issues 2013-09-01 17:27:13 +01:00
Luke Page
969e70a573 sourcemaps: Fix some issues with output, add an inline flag, add a test harness 2013-07-31 22:11:53 +01:00
Luke Page
8c3e304966 get the map file outputting and reference file from the end of the css file 2013-07-19 06:54:02 +01:00
Luke Page
1ec0563c9a add sourcemapper class 2013-07-18 13:06:56 +01:00
Luke Page
fb9423b94b Merge remote-tracking branch 'evocateur/all-sourcemap-patches' into sourcemaps-wip 2013-07-17 22:18:29 +01:00
Christophe Robin
2d1afdfe91 Added switch --insecure to allow imports from insecure/self-signed SSL certificates 2013-07-11 16:45:23 +09:00
Luke Page
283d623a98 switch to use the clean-css compressor. #1349 2013-07-09 08:22:59 +01:00
Daniel Stockman
8eeaf87a79 JSHint lib/* and test runners. 2013-07-08 19:09:03 -07:00
Luke Page
98f2fef2df add option to disable javascript. Fixes #688 2013-07-05 06:52:29 +01:00
ForbesLindesay
22c5bd77c4 Fix global variable leaks 2013-07-05 06:10:16 +01:00
Luke Page
65602099cc rename strictMaths to strictMath, set default to false, update strict options to take = on | off 2013-05-02 18:18:51 +01:00
Taylor
8fe4033817 Fixes small typo in command prompt usage text 2013-03-20 19:14:01 -03:00
Luke Page
3fc8944ce8 Tidy up options 2013-03-20 08:42:01 +00:00
leeight
fc56975b3a ENABLE max-line-len options support 2013-03-20 08:26:03 +00:00
Luke Page
45ea535a90 Add implementation of dependency tree 2013-03-06 10:43:45 +00:00
Daniel Stockman
e4fe935ea1 Prevent data-uri function from embedding files larger than 32KB.
Although IE8 does support data-uris, it only does so with a limit of 32KB. It's a silly limitation, but a source of potential bugs. When the limit is exceeded, the data-uri() function will simply return a normal url() value with a relative path to the asset.

One may pass --no-ie-compat to lessc to avoid this safeguard.
2013-02-26 18:55:35 +00:00
Luke Page
3ef22f16f9 Add strictUnits option, add tests for legacy behaviour 2013-01-30 20:31:26 +00:00
Luke Page
988d378922 add evalEnv class and strictMaths option 2013-01-25 20:05:37 +00:00
Richard Brown
fb60990145 Add a lint option to lessc 2013-01-05 15:29:47 +00:00
Luke Page
eb5c9fbf5d Relative url's option for node lessc 2012-12-28 15:25:15 +00:00
Salim Bensiali
7396e3438e Added documentation for the -rp, --rootpath option. 2012-12-27 20:41:51 +00:00
Luke Page
aab2be61cb unbundle css min. Add optional dependency on ycssmin. Correct some things in the package.json. Add a .npmignore. Fixes #1080 2012-12-20 23:16:54 +00:00
Simone Deponti
959e22f5ff Added media query support.
* env.dumpLineNumbers was being lost when doing "offline" compilation
   (within node.js)
 * Added documentation for the changed options
 * --line-numbers now takes a parameter
   (either "comments", "mediaquery" or "all")
 * The system can now again output mediaqueries for FireLESS
 * Moved comments tests in debug/comments, will duplicate
   for mediaquery and for "all"

Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Matt
fb21a897f6 Add some content to lessc help
Added some details to lessc and extracted a printUsage method.

Fixes #817
2012-08-15 18:53:35 +01:00
Matt
5132c71a5b Fix error output and extract a helper object for lessc related methods
- Fixed a bug, which prevents colors from being set in error messages.
- Created a helper object for lessc methods and moved the stylize function
  into it. Changed test/less-test.js and lib/less/index.js to use new methods.
- Removed duplicate definitions of the stylize function.
2012-08-15 18:53:35 +01:00