hotwired / stimulus

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

Stimulus creates additional assets when building with Webpack #191

Closed robinvdvleuten closed 6 years ago

robinvdvleuten commented 6 years ago

Whenever I build the assets through rails assets:precompile, Webpacker compiles all packs as expected. But I also receive an additional public/assets/@stimulus/core/dist/src/application-...js somehow. Is this something I need to configure with Stimulus?

javan commented 6 years ago

I'm pretty sure that's an issue with Sprockets. See https://github.com/stimulusjs/stimulus/issues/153#issuecomment-385392326https://github.com/rails/webpacker/issues/1285#issuecomment-368599568