Search code examples
ruby-on-railsrubyimportmap-rails

Is there an auto compiler in rails importmap-rails when you have changes in javascript? (like in webpacker or esbuild)


I have a new rails project which by default has a importmap.

For updating my changes i need to every time type

rails assets:precompile 

but i know in webpacker they will be recompiling with your changes. Is there possible to do same in importmaps?

Just imported one package and do small javascript controller using stimulus


Solution

  • how @Alex says -

    rake assets:clobber     # Remove compiled assets
    

    that command helps me, thanks you Alex!