Closed rainerborene closed 6 years ago
For any reason in particular? Are you having trouble with the minified version?
No troubles. Just need to be able to read its code (and better leave minification work to sprockets anyway).
Most asset bundlers will use the npm package's "module", which we provide: https://github.com/stimulusjs/stimulus/blob/de381fa96e083da1c3088cab8dcb8a2dc987ba96/packages/stimulus/package.json#L12-L13
The module files are unminified and have source maps. You can browse them online if you're interested: https://unpkg.com/@stimulus/core@0.9.0/dist/module/
So, you could consider using webpacker with your Rails application. And we'll consider providing an unminified UMD version in the future.
Thanks!
Please provide the unminified version:
stimulus.umd.js
andstimulus.umd.min.js
.