javascript - Precompile json data and include with Ruby on Rails -


i trying precompile , use bootstrap toggle ruby on rails on heroku.

here javascript console error getting when compile bootstrap-toggle.min.js.map file comes css , js files,

uncaught syntaxerror: unexpected token : application-4df1877ce16cb310440b73a84d39fd58.js:14555 

and error line long json object looks like,

{"version":3,"file":"bootstrap-toggle.min.js", ... } 

why getting javascript error?

and also, should have line in application.js file?

//= require bootstrap-toggle.min.js.map 

update: if want why can't precompile json getting javascript console errors great. found work around not precompiling json @ @ including in public/assets folder. updated linked folder.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -