I did not see the minifier among the tools in https://code.trac.wordpress.org/browser/ . Is it in the repo somewhere? Or, what is it?

(Note this question has been asked previously on Stack Exchange but the author was really asking a different question, so it does not have an answer. See What exact CSS minifier does WP core use? if you're really interested.)

2 Answers 2


According the the Gruntfile.js in core, the minifier is grunt-contrib-cssmin - https://www.npmjs.com/package/grunt-contrib-cssmin


Yeah, this minifier is present only in the development version of WordPress and it is not shipped with code that you can find in releases. They usually ship un-minified CSS and JS, with suffix .min for minified files. Also, based on a config option you can select which one to load between the two.

By development version of WordPress I mean the code resides in the SVN trunk (can be found here). They also maintain a GIT mirror of the SVN repo, just for people who prefer using it.

One can play with their latest trunk by cloning the git repo locally:

git clone git://develop.git.wordpress.org/ wordpress-trunk
cd wordpress-trunk
# explore
# Gruntfile.js is the place where can one look at the 
# logic the core uses to build assets with
  • Just to clarify, when you say 'development version of WordPress' are you referring to the nightly builds? And when you say 'other code' are you referring to the releases?
    – davemac
    Aug 24, 2017 at 1:26
  • @davemac thanks, I have clarified that in the answer. Aug 24, 2017 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.