Skip to content

Conversation

Anahkiasen
Copy link
Contributor

Closes #19

@seanadkinson
Copy link
Contributor

Looks good. Can you add something to the README about how to use it?

@Anahkiasen
Copy link
Contributor Author

Done, tell me if it's clear enough

index.js Outdated
module.exports.pitch = function(remainingRequest) {
this.cacheable && this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var chunkName = loaderUtils.interpolateName(this, 'routes/' + query.name, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For backwards compatibility, should we check the existence of a [ in the name? Using the example from the readme, if an existing user had ?name=user, their behavior would now change. But maybe that doesn't matter. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking maybe automatically putting the chunks in a subfolder by default is a bad idea, would maybe be better to just leave behavior unchanged but mention how to do that in the README?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that would be better.

@Anahkiasen
Copy link
Contributor Author

@seanadkinson done

@seanadkinson
Copy link
Contributor

Good stuff @Anahkiasen. Let me pull this down and do some quick testing, and as long as its backwards compatible I'll push an update.

@seanadkinson seanadkinson merged commit 918f5a7 into odysseyscience:master Mar 23, 2016
@Anahkiasen Anahkiasen deleted the feature/inferred-names branch March 23, 2016 22:26
@seanadkinson
Copy link
Contributor

Published v0.5.1. Thanks!

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.

2 participants