I’ve decided to include a Grunt task runner set-up within the theme’s Git repository. Again, I use Grunt for most projects, so it seemed sensible to include it. Note, I’ve also moved the sass directory into the utils directory.
The provided Gruntfile.js is configured to:
- Run dart-sass on
src/sass/main.scss - Minify
dist/css/main.css - Uglify
src/js/*.js - Copy all css and js to public assets directory
- Watch for changes in
src/SCSS and JS files to repeat the above steps
If you are not familiar with Grunt, I have included some basic instructions to try and help you get up and running.
