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

Please add a baseUrl #13

Open
stevenvachon opened this issue Dec 11, 2013 · 1 comment
Open

Please add a baseUrl #13

stevenvachon opened this issue Dec 11, 2013 · 1 comment

Comments

@stevenvachon
Copy link

For relative paths, just like grunt-contrib-requirejs. It would make it easier to customize things without the need for a customize normalizer, which is probably best for more advanced customizations.

@daffl
Copy link
Contributor

daffl commented Dec 11, 2013

This should be as trivial as adding

var normalizer = configuration.normalizer || function (filename) {
  var relative = configuration.baseUrl || path.dirname(configuration.out);
  return path.relative(relative, filename);
};

in https://github.com/daffl/can-compile/blob/master/lib/index.js#L12. I'll gladly accept a pull request that adds this functionality and a test for it.

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

No branches or pull requests

2 participants