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
{{ message }}
Repository navigation
[Feature Request] Add define('WP_SCSS_ALWAYS_RECOMPILE', true); to settings page #151
I had this idea when I was installing the plugin for the millionth time on a site, I always have to google the define('WP_SCSS_ALWAYS_RECOMPILE', true); code because I don't have it written down anywhere. It'd be very convenient if on the settings page, it was written at the bottom or something. I have to use it with pretty much all dev sites.
I'll just jump in here for my 2 cents -- I think @bick meant the WP plugin settings page. We have a similar workflow for our dev sites, and it's a pain to remember to enable the WP_SCSS_ALWAYS_RECOMPILE flag, and to disable it when we go live. It would be easier to simply have a checkbox for "Always recompile SCSS" in the WP plugin settings page.
Yeah, @shadoath I meant the plugin settings page. Having it be there as a text snippet that you can simply copy and paste would be perfect, but @aerothopter's suggestion would be even more convenient.
@bick@aerothopter please take a look at #162. Currently this allows for both options. I'm thinking it could be improved if it showed if the WP_SCSS_ALWAYS_RECOMPILE flag was defined in the settings page.
I agree. From a UX perspective, if the WP_SCSS_ALWAYS_RECOMPILE flag was defined, then the checkbox would be disabled (i.e. locked to enabled/disabled) with a tooltip letting the user know that the setting is locked using the WP_SCSS_ALWAYS_RECOMPILE flag. And if it were not defined, the user would be able to use the checkbox as normal.
Activity
shadoath commentedon Jan 24, 2021
@bick When you reference the Settings page can you be more specific? Do you want it in the readme of this repo or on the WP plugin page?
aerothopter commentedon Feb 8, 2021
I'll just jump in here for my 2 cents -- I think @bick meant the WP plugin settings page. We have a similar workflow for our dev sites, and it's a pain to remember to enable the WP_SCSS_ALWAYS_RECOMPILE flag, and to disable it when we go live. It would be easier to simply have a checkbox for "Always recompile SCSS" in the WP plugin settings page.
bick commentedon Feb 8, 2021
Yeah, @shadoath I meant the plugin settings page. Having it be there as a text snippet that you can simply copy and paste would be perfect, but @aerothopter's suggestion would be even more convenient.
shadoath commentedon Feb 9, 2021
@bick @aerothopter please take a look at #162. Currently this allows for both options. I'm thinking it could be improved if it showed if the
WP_SCSS_ALWAYS_RECOMPILEflag was defined in the settings page.aerothopter commentedon Feb 12, 2021
I agree. From a UX perspective, if the
WP_SCSS_ALWAYS_RECOMPILEflag was defined, then the checkbox would be disabled (i.e. locked to enabled/disabled) with a tooltip letting the user know that the setting is locked using theWP_SCSS_ALWAYS_RECOMPILEflag. And if it were not defined, the user would be able to use the checkbox as normal.shadoath commentedon Feb 13, 2021

I think this feature is ready.