Skip to content

Commit

Permalink
Merge pull request #44 from mihai-dinculescu/sprockets_4
Browse files Browse the repository at this point in the history
Fix register_mime_type extension.
  • Loading branch information
bdrazhzhov authored Jul 27, 2016
2 parents ee8178b + 0965b68 commit a126cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typescript/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Typescript::Rails::Railtie < ::Rails::Railtie
end

if Sprockets.respond_to?(:register_transformer)
Sprockets.register_mime_type 'text/typescript', extensions: ['.js.ts']
Sprockets.register_mime_type 'text/typescript', extensions: ['.ts']
Sprockets.register_transformer 'text/typescript', 'application/javascript', Typescript::Rails::Transformer
end
end
Expand Down

0 comments on commit a126cda

Please sign in to comment.