HumHub Build ¶
HumHub provides some grunt tasks to ease the execution of some console commands. This guide describes how to setup the grunt and use the available commands.
Grunt Setup ¶
npm install -g grunt-cli
npm installin your HumHub root
Build Assets ¶
Your production assets are saved under
Note: Only humhub\assets\AppAsset dependencies are compressed.
- Grunt Asset Built
The simples way to build your production assets is using the following grunt task:
- Manual Asset Built
- Delete the content of your
- Delete the old compressed file
php yii asset humhub/config/assets.php humhub/config/assets-prod.php
Info: Detailed information is available in the Yii Asset Guide.
Build Community Theme ¶
- Install Less
npm install less -g
- Grunt theme build
to build another theme within the
@humhub/themes directory run:
grunt build-theme --name=MyTheme
- Manual theme build
lessc -x themes/HumHub/less/build.less themes/HumHub/css/theme.css