Browse Source

new asset WIP: renabled asset publishing

tags/2.0.0-rc
Qiang Xue 10 years ago
parent
commit
37c825a8be
  1. 3
      BootstrapAsset.php
  2. 3
      BootstrapPluginAsset.php
  3. 3
      BootstrapThemeAsset.php

3
BootstrapAsset.php

@ -17,7 +17,8 @@ use yii\web\AssetBundle;
*/
class BootstrapAsset extends AssetBundle
{
public $sourcePath = '@bower/bootstrap';
public $css = [
'bootstrap/dist/css/bootstrap.css',
'dist/css/bootstrap.css',
];
}

3
BootstrapPluginAsset.php

@ -17,8 +17,9 @@ use yii\web\AssetBundle;
*/
class BootstrapPluginAsset extends AssetBundle
{
public $sourcePath = '@bower/bootstrap';
public $js = [
'bootstrap/dist/js/bootstrap.js',
'dist/js/bootstrap.js',
];
public $depends = [
'yii\web\JqueryAsset',

3
BootstrapThemeAsset.php

@ -17,8 +17,9 @@ use yii\web\AssetBundle;
*/
class BootstrapThemeAsset extends AssetBundle
{
public $sourcePath = '@bower/bootstrap';
public $css = [
'bootstrap/dist/css/bootstrap-theme.css',
'dist/css/bootstrap-theme.css',
];
public $depends = [
'yii\bootstrap\BootstrapAsset',

Loading…
Cancel
Save