GET http://website.test/favicon.ico 404 (Not Found)这是我的基本模板:<!DOCTYPE html> <meta charset="UTF-8"> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %} <link rel="stylesheet" href={{ asset("build/app.css") }}/> {% endblock %}</head><body><h1 class="grey">It works !</h1><a class="waves-effect waves-light btn">button</a><a class="waves-effect waves-light btn"><i class="material-icons left">cloud</i>button</a><a class="waves-effect waves-light btn"><i class="material-icons right">cloud</i>button</a>{% block body %}{% endblock %} {% block javascripts %} <script src={{ asset("build/app.js") }}></script> <script src={{ asset("build/manifest.js") }}></script> {% endblock %}</body>我不知道该怎么办才能使我的网站正常工作?I don't know what to do what can do my website working ?推荐答案已修复!您必须要做:<link rel="stylesheet" href="{{ asset("build/app.css") }}"/>不是:<link rel="stylesheet" href={{ asset("build/app.css") }}/> 这篇关于Webpack-通过Symfony实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-03 10:20