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

Honor file extensions #32

Closed
ghost opened this issue Jul 12, 2015 · 1 comment
Closed

Honor file extensions #32

ghost opened this issue Jul 12, 2015 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Jul 12, 2015

Check whether Fly honors file extensions if the last filter does not return { extension: ".." }.

For example:

  yield this.source("coffee/src/**/*.coffee")
  .coffee()
  .uglify()
  .target("coffee/dist/")

If uglify does not set the file extension, Fly should use whatever extension set by coffee and so on.

@ghost ghost changed the title Do file extensions Honor file extensions Jul 12, 2015
@ghost ghost added the maybe label Jul 12, 2015
@ghost ghost added this to the 0.4.0 milestone Jul 15, 2015
@ghost
Copy link
Author

ghost commented Jul 22, 2015

The reduce filter where each of the transformations is applied to the incoming source will use the lastly exported extension. So, in the case above, the result will be .js even if uglify did not specify { ext: ".js" }, because that's fly-coffee exports.

@ghost ghost closed this as completed Jul 22, 2015
@ghost ghost removed this from the 0.4.0 milestone Jul 22, 2015
This issue was closed.
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

0 participants