Grunt won't create main.min.css

Hi, I just installed the starter theme. It seems like grunt is not building the main.min.css file.

EDIT: Ohh, new roots version!

From the new README:

Available Grunt commands

  • grunt dev — Compile LESS to CSS, concatenate and validate JS
  • grunt watch — Compile assets when file changes are made
  • grunt build — Create minified assets that are used on non-development environments

You’re looking for grunt build.

Also, if you don’t use Bedrock, you’ll need to add the following to your wp-config.php on your development installation:

define('WP_ENV', 'development');
1 Like