Typo: examples/server.js #35

Closed
runixer opened this Issue Sep 21, 2012 · 1 comment

Projects

None yet

2 participants

@runixer
runixer commented Sep 21, 2012

On 83 and 86 line in current revision

Now:
if ('production' !== process.env.NODE_ENV && asset.isCompiled) {
asset.toArray().forEach(function (dep) {
paths.push('/assets/' + rewrite_extension(dep.logicalPath) + '?body=1');
});
} else {
paths.push('/assets/' + rewrite_extension(asset.digestPath));
}

As I think, must be:
if ('production' !== process.env.NODE_ENV && asset.isCompiled) {
asset.toArray().forEach(function (dep) {
paths.push('/assets/' + rewrite_extension(dep.logicalPath, ext) + '?body=1');
});
} else {
paths.push('/assets/' + rewrite_extension(asset.digestPath, ext));
}

Sorry for the lack of diff

@ixti ixti added a commit that closed this issue Sep 21, 2012
@ixti ixti Fix typo in an examples
Resolves #35.
2d6e485
@ixti ixti closed this in 2d6e485 Sep 21, 2012
@ixti
Collaborator
ixti commented Sep 21, 2012

You're absolutely right. Thanks for noticing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment