I presume that most people use it together with Rails and webpacker which does this for you. Also, I’m not sure if there is any other tooling for Stimulus, but I might be wrong.
Thanks for pointing out. I think it would be nice that we can build for stand alone project.
You can build for standalone project by adding
"build": "webpack --mode production" to
package.json , then running
yarn build. I assume you’re using webpack.