Steps to use robo cli for bundling / minification - linux
-
Install composer globally
-
The below commands install the php packages necessary for handling css and js files
composer require consolidation/robo
composer require natxet/CssMin
composer require patchwork/jsqueeze
- Initilize robo. The command creates RoboFile.php
./vendor/bin/robo init
-
Add tasks to the file
-
Execute tasks with the below command
./vendor/bin/robo <function_name>
Sample functions for minification and bundling provided in the repo