我在 laravel 4 中渲染引导主题的 css+html 时遇到问题。我通过管理模板和网络浏览器向我展示了类似的东西。我使用jasonlewis basset来生成管理模板。如何解决这个问题?我在 app\config\packages\jasonlewis\basset\config.php 中使用它:
'collections' => array(
'public' => function($collection)
{
$collection->directory('assets/css', function($collection)
{
$collection->add('bootstrap.min.css');
$collection->add('jquery-ui-1.10.3.custom.css');
$collection->add('fullcalendar.css');
$collection->add('chosen.css');
$collection->add('select2.css');
$collection->add('jquery.cleditor.css');
$collection->add('jquery.noty.css');
$collection->add('noty_theme_default.css');
$collection->add('elfinder.min.css');
$collection->add('elfinder.theme.css');
$collection->add('uploadify.css');
$collection->add('jquery.gritter.css');
$collection->add('font-awesome.min.css');
$collection->add('font-awesome-ie7.min.css');
$collection->add('glyphicons.css');
$collection->add('halflings.css');
$collection->add('dropzone.css');
$collection->add('xcharts.min.css');
$collection->add('jquery.easy-pie-chart.css');
$collection->add('icheck/all.css');
$collection->add('bootstrap-editable.css');
$collection->add('lato300.css');
$collection->add('lato.css');
$collection->add('kausha.css');
$collection->add('style.min.css');
$collection->add('retina.min.css');
})->apply('UriRewriteFilter')->apply('CssMin');
$collection->directory('assets/js', function($collection)
{
$collection->add('html5.js');
$collection->add('respond.min.js');
$collection->add('jquery-2.0.3.min.js');
})->apply('JsMin');
},
'admin' => function($collection)
{
$collection->directory('assets/css', function($collection)
{
$collection->add('bootstrap.min.css');
$collection->add('jquery-ui-1.10.3.custom.css');
$collection->add('fullcalendar.css');
$collection->add('chosen.css');
$collection->add('select2.css');
$collection->add('jquery.cleditor.css');
$collection->add('jquery.noty.css');
$collection->add('noty_theme_default.css');
$collection->add('elfinder.min.css');
$collection->add('elfinder.theme.css');
$collection->add('uploadify.css');
$collection->add('jquery.gritter.css');
$collection->add('font-awesome.min.css');
$collection->add('font-awesome-ie7.min.css');
$collection->add('glyphicons.css');
$collection->add('halflings.css');
$collection->add('dropzone.css');
$collection->add('xcharts.min.css');
$collection->add('jquery.easy-pie-chart.css');
$collection->add('icheck/all.css');
$collection->add('bootstrap-editable.css');
$collection->add('lato300.css');
$collection->add('lato.css');
$collection->add('kausha.css');
$collection->add('style.min.css');
$collection->add('retina.min.css');
})->apply('UriRewriteFilter')->apply('CssMin');
$collection->directory('assets/js', function($collection)
{
$collection->add('html5.js');
$collection->add('respond.min.js');
$collection->add('jquery-2.0.3.min.js');
//$collection->requireDirectory('../../../vendor/twbs/bootstrap/js');
$collection->add('jquery-migrate-1.2.1.min.js');
$collection->add('bootstrap.min.js');
$collection->add('jquery-ui-1.10.3.custom.min.js');
$collection->add('jquery.ui.touch-punch.min.js');
$collection->add('jquery.sparkline.min.js');
$collection->add('fullcalendar.min.js');
$collection->add('excanvas.min.js');
$collection->add('jquery.flot.min.js');
$collection->add('jquery.flot.pie.min.js');
$collection->add('jquery.flot.stack.min.js');
$collection->add('jquery.flot.resize.min.js');
$collection->add('jquery.flot.time.min.js');
$collection->add('jquery.autosize.min.js');
$collection->add('jquery.placeholder.min.js');
$collection->add('moment.min.js');
$collection->add('daterangepicker.min.js');
$collection->add('jquery.easy-pie-chart.min.js');
$collection->add('jquery.dataTables.min.js');
$collection->add('dataTables.bootstrap.min.js');
$collection->add('custom.min.js');
$collection->add('core.min.js');
$collection->add('pages/index.js');
})->apply('JsMin');
}