- [[app\assets\AppAsset]]
By default phd runs with the default bootstrap asset bundle from Yii.
To enable asset customization, edit src/assets/AppAsset.php and uncomment 'less/app.less',.
There are three files included by default:
app.lessmain LESS file for applicationbootstrap.lessincludes for bootstrap LESS filesvariables.lessbootstrap settings
Initial adjustment to the style settings of the application should be made in variables.less
When developing assets you can set
APP_ASSET_FORCE_PUBLISH=1in your local.envfile, this improves detection of changes for included files. Note: This feature is only available in theAppAssetbundle for the application.
For bundling assets for production usage, see tutorial about asset compression.
rm -rf /app/web/assets/*
yii app/clear-assets --interactive=0