Browse Source

avoid publishing dev files of js packages

tags/2.0.0-rc
Carsten Brandt 10 years ago
parent
commit
c3d62ce68d
  1. 4
      BootstrapAsset.php
  2. 4
      BootstrapPluginAsset.php
  3. 4
      BootstrapThemeAsset.php

4
BootstrapAsset.php

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

4
BootstrapPluginAsset.php

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

4
BootstrapThemeAsset.php

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

Loading…
Cancel
Save