First of all, I've changed my web directory to public_html using the instructions on the symfony cookbook website
My CSS file were working before but not anymore.
When I dump the assets using the command:
php app/console assetic:dump --env=prod --no-debug
The CSS files generated are empty.
The CSS files are also not being echoded in the html.
Any ideas?
尝试将目录传递给assetic:dump
命令:
php app/console assetic:dump public_html --env=prod --no-debug
If you're using symfony 2+
php app/console assets:install /username/public_html
or if you're working locally you can do something like this
php app/console assets:install C:/xampp/htdocs/dev_symfony_project/public_html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.