Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented URL rewriting in relative imports and urls relatively to the file that defines them. #976

Closed
wants to merge 5 commits into from

Conversation

SalimBensiali
Copy link
Contributor

Follow up on discussion #331.

…es 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=''
Conflicts:
	bin/lessc
	lib/less/browser.js
	lib/less/index.js
	test/less-test.js
@lukeapage
Copy link
Member

Thanks very much, have pulled as well as adding a few fixes and making the current version of the unit tests work.

Next I will allow the rootpath option to be disabled so that no re-writing occurs at all.

@lukeapage lukeapage closed this Dec 28, 2012
@reggi
Copy link

reggi commented Mar 21, 2013

@lukeapage This is still an issue for me, I used @SalimBensiali 's version and it fixed my relative paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants