Stimulus Discourse

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


#1

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.


#2

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: