3 Star 4 Fork 1

xiongchuan / yii2-basic-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
assets-gulp.php 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
xiongchuan 提交于 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 [
'jsCompressor' => 'gulp compress-js --gulpfile tools/gulp/gulpfile.js --src {from} --dist {to}',
'cssCompressor' => 'gulp compress-css --gulpfile tools/gulp/gulpfile.js --src {from} --dist {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' => [
],
],
'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',
],
];
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

搜索帮助