我遇到了css生成问题
我添加了这样的代码:
<? foreach ($asseticHelper->stylesheets(
array('@AnglerCoreBundle/Resources/public/css/*')
) as $url
): ?>
<link rel="stylesheet" href="<?= $view->escape($url) ?>" />
<? endforeach ?>
在我的 layout.html.php 头部和:
<? foreach ($view['assetic']->javascripts(
array(
'@AnglerCoreBundle/Resources/public/js/framework/jquery.js',
'@AnglerCoreBundle/Resources/public/js/framework/json2.js',
'@AnglerBackendBundle/Resources/public/js/hashchange.js',
'@AnglerBackendBundle/Resources/public/js/location.js',
'@AnglerBackendBundle/Resources/public/js/interfaces/*',
'@AnglerBackendBundle/Resources/public/js/page.js',
'@AnglerBackendBundle/Resources/public/js/ui.js',
'@AnglerBackendBundle/Resources/public/js/main.js',
'@AnglerBackendBundle/Resources/public/js/fader.js',
'@AnglerBackendBundle/Resources/public/js/modal.js',
'@AnglerBackendBundle/Resources/public/js/pages/*',
)
) as $url
): ?>
以上结束正文标签。问题是当我调用命令时:
app/console clear:cache --env=dev[prod]
app/console assetic:dump
app/console assetic:dump --env=prod --no-debug
app/console assets:install
资产包只生成 javascript,我在两种环境中都可以在页面上看到它们,但 css 文件却没有。