mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 09:40:41 +08:00
Additional comments have been added to the "AssetController::actionTemplate" output.
This commit is contained in:
@@ -601,13 +601,17 @@ EOD;
|
|||||||
{
|
{
|
||||||
$template = <<<EOD
|
$template = <<<EOD
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Configuration file for the "yii asset" console command.
|
||||||
|
* Note: in the console environment some path aliases like "@wwwroot" and "@www" may not exist,
|
||||||
|
* so corresponding paths should be specified directly.
|
||||||
|
*/
|
||||||
return array(
|
return array(
|
||||||
//
|
// The list of asset bundles, which files should be included to compression:
|
||||||
'bundles' => require('path/to/bundles.php'),
|
'bundles' => require('path/to/bundles.php'),
|
||||||
//
|
// The list of extensions, which asset files should be included to compression:
|
||||||
'extensions' => require('path/to/namespaces.php'),
|
'extensions' => require('path/to/namespaces.php'),
|
||||||
//
|
// Compression result asset bundle:
|
||||||
'targets' => array(
|
'targets' => array(
|
||||||
'all' => array(
|
'all' => array(
|
||||||
'basePath' => __DIR__,
|
'basePath' => __DIR__,
|
||||||
@@ -616,7 +620,7 @@ return array(
|
|||||||
'css' => 'all-{ts}.css',
|
'css' => 'all-{ts}.css',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// Asset manager configuration:
|
||||||
'assetManager' => array(
|
'assetManager' => array(
|
||||||
'basePath' => __DIR__,
|
'basePath' => __DIR__,
|
||||||
'baseUrl' => '/test',
|
'baseUrl' => '/test',
|
||||||
|
|||||||
Reference in New Issue
Block a user