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

Replace 'LOCATE' and '~' module path rewriting with 'locate://' and 'pkg://' #605

Closed
nlundquist opened this issue Feb 29, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@nlundquist
Copy link
Contributor

New syntax originating from stealjs/steal-less#11 , though that issue is specific to LESS.

The plan is to replace the existing LOCATE and ~ path rewriting syntax with new path schemes that can accomplish more and have more familiar syntax.

'locate://' will work like the existing syntax, importing resources from a module ('bootstrap/main.less') or relative to the file containing the import ('../shared/main.less', './style.less').

'pkg://' will also import resources from a module, but will do relative imports relative to the project root.

@nlundquist nlundquist self-assigned this Feb 29, 2016
@nlundquist nlundquist added this to the 0.15.0-pre milestone Mar 3, 2016
@nlundquist
Copy link
Contributor Author

pkg:// syntax should be relative to npm package root. can't complete that feature as the package path currently isn't exposed through the loader. will add the feature once that path is exposed by modifications to the npm extension.

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

No branches or pull requests

1 participant