hotwired / stimulus

A modest JavaScript framework for the HTML you already have
https://stimulus.hotwired.dev/
MIT License
12.62k stars 418 forks source link

How to build for production when using in a non-Rails project? #210

Closed DevotionGeo closed 5 years ago

danielcompton commented 5 years ago

This is a usage question and should go to https://discourse.stimulusjs.org/, I think? The Stimulus starter is one option you could look at: https://github.com/stimulusjs/stimulus-starter.

Update: Ah, I see you already opened a question on the forum, that will be the best place for further discussion about this.

DevotionGeo commented 5 years ago

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