You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #65 Activating "debug" mode for Stimulus for dev builds (weaverryan)
This PR was merged into the main branch.
Discussion
----------
Activating "debug" mode for Stimulus for dev builds
Hi!
Well... this was such an easy win, we should have done it awhile ago :).
For a "dev" build, this activates Stimulus's debug mode, which outputs a lot of information to the log. Here is an example of a page with a single controller... and then after I activate an action on that controller:
<img width="233" alt="Screen Shot 2022-04-19 at 10 09 53 AM" src="https://user-images.githubusercontent.com/121003/164023350-f0086b9b-afaa-47bb-b5f2-5e73e4f5da48.png">
When running `yarn encore production` (or `npm run encore production`), debug mode will be disabled. Heck, Weback is SO cool that, when building for production, the entire new `if` statement is omitted (i.e. this adds 0 extra bytes to production builds).
Commits
-------
6618e29 Activating "debug" mode for Stimulus for dev builds
0 commit comments