How can I get the Rails asset pipeline to produce source maps?

后端 未结 4 641
太阳男子
太阳男子 2021-02-01 13:49

I\'d like to have Rails produce source maps alongside the compiled coffeescript/minified JS, for better error logging. There doesn\'t seem to be comprehensive documentation on t

4条回答
  •  后悔当初
    2021-02-01 14:05

    Rails supports source maps for minified JavaScript! Rails relies on Sprockets for asset compilation, and source maps support was added to Sprockets in this pull request.

提交回复
热议问题