How do I build for production if I'm using it in a non-Rails project?

I wanna use Stimulus (and Turbolinks) in a Phoenix project, how do I build it for production? There is nothing in the documentation about that.

I made it work by adding "build": "webpack --mode production" to "scripts" inside package.json, then running yarn build.
It was so easy. :slight_smile: