Gem coffee rails source maps 然后执行 bundle rm rf tmp cache assets 删除 tmp cache assets 将导致资源管道在下一页加载时重新编译所有的coffeescripts 这将确保生成所有源映射 用法.
Coffee rails source maps.
Is hard coded so this only works when you use that specific environment.
Rails apps can use coffee rails source maps gem otherwise google for your framework name plus source maps.
This becomes highly useful as it helps to debug or inspect compressed client side code in browser depends on browser support.
Gem coffee rails source maps and then execute.
To use them simply put them into gemfile development group.
这个 gem 应该只在开发模式中使用 group development do gem coffee rails source maps end.
Monkey patch for coffee script v 1 6 2 source maps for rails.
It used to be that just having coffee rails in your gemfile would produce exceptions with line numbers in the original coffeescript source.
Source maps are a language agnostic way to map minified combined or pre processed code to the original source file.
Important only works in development environment.
Rails の asset pipeline は coffeescript をコンパイルしてくれるけど sourcemaps は生成してくれない せっかく chrome が sourcemaps をサポートしているというのに 未だに生成された javascript コードでデバッグしろというのか 実はもう既に sourcemaps を生成できるようになっていることを期待して coffee.
This gem should really only be used in development mode.
Gem for generating coffeescript source maps is called coffee rails source maps and name for sass source maps support is sass rails source maps.
This will ensure all source maps are generated.
Sprocket 现在还不支持 有一个monkey patch可以用 有人封了个 gem coffee rails source maps.
If you don t really want source maps but instead just want line numbers in coffee script compile exceptions try this.
When using coffeescript we often find it difficult to locate the exact location of an error since.
Greatghoul 15 2013年03月25 日.
Bundle rm rf tmp cache assets removing tmp cache assets will cause the asset pipeline to recompile all your coffeescripts on the next page load.
If you re running a web app server like rails django or node js there is an additional step for you because you need to make sure that the map files and coffeescript source files are exposed to the web browser.
You can also do it manually by using the m flag with the coffee command.