You dont need to add this scripts to asset precompile if you placed script in assets/javascript (its  even written in commented instruction in production.rb). This additions config are only for scripts placed in vendor folder where you put external libraries like ckeditor.js, datatable.js