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 class BootstrapAsset extends AssetBundle
{ {
public $sourcePath = '@bower/bootstrap';
public $css = [ 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 class BootstrapPluginAsset extends AssetBundle
{ {
public $sourcePath = '@bower/bootstrap';
public $js = [ public $js = [
'bootstrap/dist/js/bootstrap.js', 'dist/js/bootstrap.js',
]; ];
public $depends = [ public $depends = [
'yii\web\JqueryAsset', 'yii\web\JqueryAsset',

3
BootstrapThemeAsset.php

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

Loading…
Cancel
Save