Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

d3.csv.min.js is consider csv file #226

Closed
abhikp opened this issue Oct 16, 2011 · 3 comments
Closed

d3.csv.min.js is consider csv file #226

abhikp opened this issue Oct 16, 2011 · 3 comments
Labels

Comments

@abhikp
Copy link

abhikp commented Oct 16, 2011

When trying to work with the d3 javascript library, sprockets will not include d3.csv.min.js because it recognizes it as a csv file:

d3.csv.min.js is 'text/csv', not 'application/javascript'
   (in /Users/abhik/Projects/branchout/vis/app/assets/javascripts/application.js:10)
@benatkin
Copy link

I think it's going to be because of the extension, not the token, so if you need a workaround that isn't too ugly, I'd replace it with d3_csv.min.js. Also you ought to be including the uncompressed version in assets/javascripts, as the asset pipeline can take care of compression.

@josh
Copy link
Contributor

josh commented Oct 16, 2011

I'd probably consider this an actual bug.

I think we should be reading extensions right to left. Since .js is the last extension, it should stop and use that as the format.

@josh josh closed this as completed in 07e1972 Oct 17, 2011
@abhikp
Copy link
Author

abhikp commented Oct 21, 2011

Thanks!

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

No branches or pull requests

3 participants