Commit Graph

41 Commits

Author SHA1 Message Date
Luke Page
62751c917c support inline css files in the sourcemaps 2013-09-17 19:37:00 +01:00
Luke Page
c1928b49d4 Merge branch 'normalized-urls' of https://github.com/rjgotten/less.js into 1.5.0-wip
Conflicts:
	test/css/static-urls/urls.css
	test/css/urls.css
2013-09-01 18:17:32 +01:00
rjgotten
e0561e3d95 Normalize URLs in generated CSS
Adds a normalizePath method to tree.evalEnv.prototype with which to normalize paths, i.e. , remove /../ or /./ segments stuck in the middle.

Unit tests have been updated to reflect these changes.
2013-08-07 10:44:12 +02: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
b2a445c46c pass more lines and columns to the sourcemap generator. start passing the filenames to the sourcemap generator. 2013-07-20 23:02:28 +01:00
Luke Page
fc35190d38 unused variable cleanup 2013-07-20 22:44:13 +01:00
Luke Page
fb75c42e4b move more files over to use genCSS 2013-07-18 06:48:32 +01:00
Luke Page
037cdb5916 fix tests 2013-07-15 22:03:52 +01:00
Luke Page
4db7c883cf start refactoring toCSS so we will be able to collect sourcemap information at the same time 2013-07-11 22:08:38 +01:00
Luke Page
6fc6dc2301 Add import inline option. Fixes #1209 2013-07-05 06:48:47 +01:00
Luke Page
3ac8371aea Change import options to require '(' 2013-03-05 11:35:41 +00:00
C. Scott Ananian
72c469d86e Implement syntax in gh #1185 for @import options. Implement multiple & less.
First step in implementing syntax for @import options, proposed in
https://github.com/cloudhead/less.js/issues/1185#issuecomment-13710620
(steps (1) and (2)).

I've implemented the 'multiple' and 'less' options.  One could trivially
add 'once' and 'css' options as well, if there was need.  Proposed
"silent" and "inline" options are deferred for future work.

I left the existing "@import-multiple" and "@import-once" syntax in place,
although the proposal is for this to be deprecated once the new option
syntax is in place.
2013-03-05 11:23:47 +00:00
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
57b41f0ea0 make import use shared relative path function 2013-03-01 13:40:50 +00:00
Luke Page
290d7a055c organise the import node a bit better. eval the node before fetching 2013-03-01 13:40:49 +00:00
Luke Page
e63c8c5868 Move importing into visitor 2013-03-01 13:40:03 +00:00
Luke Page
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +00:00
Luke Page
9b256f2340 whitespace 2013-02-28 20:17:52 +00:00
Luke Page
d70769bfb7 variables in media queries in import statements 2013-02-16 14:44:58 +00:00
Luke Page
914eb404d7 Fix import errors in browser mode. Fixes #1117 and fixes #1118 2013-02-10 12:47:25 +00:00
Luke Page
8069e707db fix typo on import 2012-12-28 22:30:09 +00:00
Luke Page
3dc7ce3f92 Do not add .less if the file has an extension already or has url parameters. Also support ';' instead of '?'. Fixes #784 and fixes #204 2012-12-28 21:29:08 +00:00
Luke Page
59258f5549 Fix server tests and an import bug when a media import is followed by further imports 2012-12-28 11:08:49 +00:00
Salim Bensiali
e59a93b5fd Relative URLs in LESS files should be relative to the file that defines them.
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.

- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
  rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
cloudhead
8891564917 import-once functionality 2012-03-21 18:03:04 +01:00
Marcel Jackwerth
80e8b42e9a remove @media code from tree.Directive 2012-02-17 01:19:46 +01:00
Alexis Sellier
2cc1b018fe fix 'File not found' import error 2012-01-10 23:52:45 +01:00
Alexis Sellier
6d4516e6fc improve errors from imported files 2012-01-09 20:39:24 +01:00
Alexis Sellier
7dd31ff654 improve import support with media features 2012-01-05 21:31:39 +01:00
Alexis Sellier
ff3d7c61ff properly support @media and @import features 2011-12-17 17:41:54 +01:00
Alexis Sellier
c290c48b3f node 0.5.x compatibility 2011-11-12 13:13:36 +01:00
revolunet
f1695f6a9a support imports with querystrings (google fonts) fix #265 2011-07-08 01:29:39 +02:00
cloudhead
4399c9c965 make strings behave like other nodes.
- rename 'content' to 'value'
2010-07-25 16:41:05 -04:00
cloudhead
9bc9d11518 cleanup ruleset evaluation
- remove eval() from ruleset.toCSS
- fix multiple mixin calls with different arguments yeilding the same
  output.
2010-07-23 19:46:48 -04:00
cloudhead
a26eb790a5 fix @import not working. Better error message for empty response 2010-06-20 01:33:03 -04:00
cloudhead
a72966fa6a removed constructor names 2010-06-19 01:51:26 -04:00
cloudhead
7768d41050 better cross-environment handling. stub out require() in browser. 2010-06-15 18:44:59 -04:00
cloudhead
5d5024e70e @import with .css files no longer precompiles. This gives us some extra
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
d0b6573017 refactored the import mechanism, added some doc 2010-03-22 20:59:49 -04:00
cloudhead
4ad707ea8e asynchronous import functionality! All tests passing. 2010-03-21 19:18:47 -04:00
cloudhead
a31f71d364 import.js init 2010-03-18 18:44:03 -04:00