hotwired / stimulus

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

Unminified version #56

Closed rainerborene closed 6 years ago

rainerborene commented 6 years ago

Please provide the unminified version: stimulus.umd.js and stimulus.umd.min.js.

javan commented 6 years ago

For any reason in particular? Are you having trouble with the minified version?

rainerborene commented 6 years ago

No troubles. Just need to be able to read its code (and better leave minification work to sprockets anyway).

javan commented 6 years ago

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!