Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement automatic CSS minify (build process) #56

Open
Zodiac1978 opened this issue May 2, 2021 · 0 comments
Open

Implement automatic CSS minify (build process) #56

Zodiac1978 opened this issue May 2, 2021 · 0 comments

Comments

@Zodiac1978
Copy link
Owner

Zodiac1978 commented May 2, 2021

The files admin.min.css should be auto generated on release.

Additionally we should apply some sort of cache busting for the CSS file. For example append the plugin version, so that the new file is loaded if changed.

https://github.com/Zodiac1978/tl-template-checker/blob/master/child-theme-check.php#L103-L107

Additionally the minified version should only be used if SCRIPT_DEBUG is false, otherwise the non-minified version should be used:
https://wordpress.org/support/article/debugging-in-wordpress/#script_debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant