Browse Source

new asset WIP

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

3
BootstrapAsset.php

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

3
BootstrapPluginAsset.php

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

3
BootstrapThemeAsset.php

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

Loading…
Cancel
Save