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.
I want to use it with Phoenix. Is there a way to build for production (outside of Rails)?
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.