meri
ead3e29f7b
Fixing import by reference
...
- refactored how import reference works
- refactored to-css-visitor (this is side product, it was getting
complicated)
- fixes issues #1851 , #1896 , #1878 , #2716 , #1968 , #2162 (same as #1896 )
2015-11-20 15:10:53 +01:00
Luke Page
c7a6e8d886
Fix import inline. Fixes #2703
2015-09-25 12:39:24 +01:00
jurcovicovam
19dc9e78b9
Added getIsReferenced into anonymous node. The visibility of anonymous
...
node type now works the same way as visibility of ruleset or directive.
2015-07-25 16:03:06 +02:00
jurcovicovam
34e3ea61ce
Import inline located inside file imported by reference should not be
...
present in output. Close #2620
2015-07-19 14:07:21 +02:00
rjgotten
0a6e2f814d
merge changes from upstream
2015-03-23 10:40:01 +01:00
seven-phases-max
414d21c7af
Fix naked url import
2015-03-21 15:19:14 +04:00
rjgotten
56f5db8362
Mend failing unit tests
2015-03-20 17:15:31 +01:00
rjgotten
4d17c8b35d
Fix plugin scope for mixins, directives and detached rulesets
...
Fixed scope for plugins to apply correctly for mixins, directives and
detached rulesets.
Updated plugin unit tests to be more comprehensive
2015-03-20 16:41:05 +01:00
Luke Page
d7846e2ae5
Merge pull request #2479 from rjgotten/import-plugin
...
Import plugin
2015-03-15 17:44:47 +00:00
rjgotten
d119e01807
Scoped @import (plugin) functions loading
...
- Limited @import (plugin) support to add/addMultiple of functions
- Altered @import (plugin) loading to support browser
- Support proper closure scoping of @import (plugin) loaded functions
2015-03-05 15:55:37 +01:00
Bass Jobsen
6c66aeb71c
change use case and add test
2015-02-28 22:32:40 +01:00
rjgotten
83db6e8d90
Allow adding plugins via @import (plugin)
2015-02-25 17:36:00 +01:00
Bass Jobsen
5bc1208987
do not output when referencing
...
should fix https://github.com/less/less.js/issues/2464
2015-02-23 18:39:39 +01:00
Luke Page
d206167c84
enforce spaces between operators for consistency
2015-01-27 22:24:12 +00:00
Luke Page
aaa2462bdb
Only detect filenames as css if they have \/.#& before css. Fixes #2364
2015-01-03 17:32:54 +00:00
Luke Page
c757befb4f
flatten import visitor so that variable imports can be processed at the end of a global queue
2014-10-23 21:33:28 +01:00
Luke Page
148a0f5908
put the appendage of the .less extension through the file manager so that behaviour can be over-ridden. Fixes #2235
2014-10-21 13:16:40 +01:00
Luke Page
9d535c0470
Whitespace - undo unusual new() syntax
2014-10-19 16:57:22 +01:00
Luke Page
dedf0eee38
rename env to context to avoid confusion with environment
2014-10-05 18:50:34 +01:00
Luke Page
7a6b1e278b
Pull out the file manager aspect of the environment so new file managers can be added dynamically
2014-10-04 17:46:30 +01:00
Luke Page
1a78cd5901
Remove unnecessary text from require statements
2014-09-08 00:57:50 +01:00
Luke Page
50e299b8bc
Fix url import. Fixes #2089 .
2014-09-07 14:40:28 +01:00
Luke Page
16746e9b1e
untangle the mess of dependencies and remove all circular dependencies. Remove un-necessary dependency injection.
2014-08-24 17:55:46 +01:00
Luke Page
f85f253586
merge from master
2014-08-14 17:27:16 +01:00
jurcovicovam
864c63d27b
Fix ordering of @import and @charset rules #1954 #2013
...
The genCss method of ruleset.js splits child nodes into two groups:
* rules,
* rulesets.
Rules are always printed first and have special handling for last rule.
Rulesets are always printed second. Wrong ordering was caused by the
condition that determined what is rule and what is ruleset.
Issue #2013 : The condition made no difference between @charset and @page,
because both are compiled into tree.Directive nodes. I added isRulesetLike
method to the tree.Directive to differentiate between them.
Issue #1954 : The condition treated all tree.Anonymous types as rules and
caused them to float up. That is incorrect, because `@import (inline)` is
compiled into tree.Anonymous too, but should be treated as ruleset and
stay where it is.
2014-07-22 14:46:58 +02:00
Luke Page
7dfc0cf9b0
Merge branch 'whitespace' of github.com:XhmikosR/less.js into 2_0_0
...
Conflicts:
lib/less/functions.js
lib/less/index.js
lib/less/tree/anonymous.js
lib/less/tree/media.js
lib/less/tree/mixin.js
2014-03-02 12:36:49 +00:00
XhmikosR
7efbcd31cf
Trim trailing whitespace.
2014-03-02 14:06:26 +02:00
Luke Page
ee64392362
Merge branch 'master' into 2_0_0
...
Conflicts:
lib/less/import-visitor.js
lib/less/index.js
2014-02-27 21:12:49 +00:00
Luke Page
ccd8ebbfdf
always execute import-once in the same way. Fixes #1898
2014-02-27 06:12:31 +00:00
Luke Page
08bd23dc2a
add browserify (not yet working) and refactor tree nodes to not be dependent on their parent (currently breaks browser build)
2014-02-24 21:22:52 +00:00
meri
85197ee577
Merge branch 'master' of https://github.com/less/less.js into rhino
...
Conflicts:
.gitattributes
README.md
test/index.js
2014-01-14 22:48:46 +01:00
meri
cba972d0db
Fixing url slash problem that caused failures.
2013-12-18 16:17:00 +01:00
fredburger
1a33bc69f8
Misc. perf optimizations. #1615
2013-10-30 08:09:17 +01:00
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