Watch 2 Star 1 Fork 1

OpenADM / yii2-basic-appApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Nothing here. spread retract

Clone or download
assets.php 2.25 KB
Copy Edit Web IDE Raw Blame History
OpenADM authored 2019-06-01 15:42 . init
<?php
/**
* Configuration file for the "yii asset" console command.
*/
// In the console environment, some path aliases may not exist. Please define these:
// Yii::setAlias('@webroot', __DIR__ . '/../web');
// Yii::setAlias('@web', '/');
include 'src/config/bootstrap.php';
return [
// Adjust command/callback for JavaScript files compressing:
'jsCompressor' => 'java -jar tools/closure/closure-compiler-v20161201.jar --js {from} --js_output_file {to}',
// Adjust command/callback for CSS files compressing:
'cssCompressor' => 'java -jar tools/yui/yuicompressor-2.4.8.jar --type css {from} -o {to}',
// Whether to delete asset source after compression:
'deleteSource' => false,
// The list of asset bundles to compress:
// Asset bundle for compression output:
'bundles' => [
'yii\web\JqueryAsset',
'yii\web\YiiAsset',
'yii\jui\JuiAsset',
'yii\bootstrap\BootstrapAsset',
'openadm\admin\themes\adminlte2\ThemeAsset'
],
'targets' => [
'allShared' => [
'class' => 'yii\web\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => 'all-shared-{hash}.js',
'css' => 'all-shared-{hash}.css',
'depends' => [
'yii\web\JqueryAsset',
'yii\web\YiiAsset',
'yii\jui\JuiAsset',
],
],
'allBackEnd' => [
'class' => 'yii\web\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => 'all-backend-{hash}.js',
'css' => 'all-backend-{hash}.css',
'depends' => [
// 'openadm\admin\themes\adminlte2\ThemeAsset'
],
],
'allFrontEnd' => [
'class' => 'yii\web\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => 'all-frontend-{hash}.js',
'css' => 'all-frontend-{hash}.css',
'depends' => [
'yii\bootstrap\BootstrapAsset',
],
],
],
// Asset manager configuration:
'assetManager' => [
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
],
];

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/openadm/yii2-basic-app.git
git@gitee.com:openadm/yii2-basic-app.git
openadm
yii2-basic-app
yii2-basic-app
master

Help Search