How to precompile Steal.js assets properly?

82 Views Asked by At

I have used steal.js as one of my assets. Previously I use it directly from public folder(i.e without pre-compile). Now I need to move its file to vendor assets so that it can be precompiled.

For this I used gem execjs to precompile .ejs files and gem less-rails to precompile .less files.

After that I successfully precompile all the assets but unfortunately steal.js raise errors Uncaught TypeError: Cannot read property 'path' of undefined and system break up.

Can anyone help me fixing these issues ?

1

There are 1 best solutions below

2
On

You can mention specific file to get precompiled in application.rb as follow:

config.assets.precompile += %w(
      steal.js
    )

Try adding this statement,It might help you