From 37c825a8beec6a39422863d8110d049201fd8051 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 2 Sep 2014 14:51:44 -0400 Subject: [PATCH] new asset WIP: renabled asset publishing --- BootstrapAsset.php | 3 ++- BootstrapPluginAsset.php | 3 ++- BootstrapThemeAsset.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/BootstrapAsset.php b/BootstrapAsset.php index 78ead6b..f9f6f0c 100644 --- a/BootstrapAsset.php +++ b/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', ]; } diff --git a/BootstrapPluginAsset.php b/BootstrapPluginAsset.php index 8fd6d47..aa30b53 100644 --- a/BootstrapPluginAsset.php +++ b/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', diff --git a/BootstrapThemeAsset.php b/BootstrapThemeAsset.php index 007f355..94ecb40 100644 --- a/BootstrapThemeAsset.php +++ b/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',