web\AssetConverter $forceConvert

$forceConvert public property Whether the source asset file should be converted even if its result already exists. You may want to set this to be true during the development stage to make sure the converted assets are always up-to-date. Do not set this to true on production servers as it will significantly degrade the performance. public boolean $forceConvert = false

web\AssetConverter $commands

$commands public property The commands that are used to perform the asset conversion. The keys are the asset file extension names, and the values are the corresponding target script types (either "css" or "js") and the commands used for the conversion. You may also use a path alias to specify the location of the command: [ 'styl' => ['css', '@app/node_modules/bin/stylus < {from} > {to}'], ] public array $commands = ['less' => ['css', 'lessc {from} {to} --no-color --source-

web\AssetBundle publish()

publish() public method Publishes the asset bundle if its source code is not under Web-accessible directory. It will also try to convert non-CSS or JS files (e.g. LESS, Sass) into the corresponding CSS or JS files using asset converter. public void publish ( $am )$am yii\web\AssetManager The asset manager to perform the asset publishing

web\AssetBundle registerAssetFiles()

registerAssetFiles() public method Registers the CSS and JS files with the given view. public void registerAssetFiles ( $view )$view yii\web\View The view that the asset files are to be registered with.

web\AssetBundle register()

register() public static method Registers this asset bundle with a view. public static static register ( $view )$view yii\web\View The view to be registered with return static The registered asset bundle instance

web\AssetBundle $publishOptions

$publishOptions public property The options to be passed to yii\web\AssetManager::publish() when the asset bundle is being published. This property is used only when $sourcePath is set. public array $publishOptions = []

web\AssetBundle init()

init() public method Initializes the bundle. If you override this method, make sure you call the parent implementation in the last. public void init ( )

web\AssetBundle $sourcePath

$sourcePath public property The directory that contains the source asset files for this asset bundle. A source asset file is a file that is part of your source code repository of your Web application. You must set this property if the directory containing the source asset files is not Web accessible. By setting this property, yii\web\AssetManager will publish the source asset files to a Web-accessible directory automatically when the asset bundle is registered on a page. If you do not set t

web\AssetBundle $jsOptions

$jsOptions public property The options that will be passed to yii\web\View::registerJsFile() when registering the JS files in this bundle. public array $jsOptions = []

web\AssetBundle $css

$css public property List of CSS files that this bundle contains. Each CSS file can be specified in one of the three formats as explained in $js. Note that only a forward slash "/" should be used as directory separator. public array $css = []