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.