Example #1
0
<?php

/**
 * Configuration file for the "yii asset" console command.
 * Note that in the console environment, some path aliases like '@webroot' and '@web' may not exist.
 * Please define these missing path aliases.
 */
return ['jsCompressor' => 'java -jar /root/compiler.jar --js {from} --js_output_file {to}', 'cssCompressor' => 'yui-compressor --type css {from} -o {to}', 'bundles' => ['app\\assets\\AppAsset', 'yii\\bootstrap\\BootstrapAsset', 'app\\modules\\admin\\assets\\AdminAsset', \dmstr\web\AdminLteAsset::className(), \yii\grid\GridViewAsset::className(), \yii\widgets\PjaxAsset::className()], 'targets' => ['frontend' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/frontend-{hash}.js', 'css' => 'css/frontend-{hash}.css', 'depends' => ['app\\assets\\AppAsset']], 'backend' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/backend-{hash}.js', 'css' => 'css/backend-{hash}.css', 'depends' => ['app\\modules\\admin\\assets\\AdminAsset', \dmstr\web\AdminLteAsset::className()]], 'all' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/all-{hash}.js', 'css' => 'css/all-{hash}.css']], 'assetManager' => ['basePath' => '/app/web/assets-prod', 'baseUrl' => '/assets-prod']];