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

83 Views Asked by At

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

1

There are 1 best solutions below

0
Alexander Abramov On

how @Alex says -

rake assets:clobber     # Remove compiled assets

that command helps me, thanks you Alex!