【发布时间】:2021-02-27 02:52:44
【问题描述】:
我无法在我的应用程序中使用app.css。每次服务器返回以下错误
GET http://localhost:8000/css/app.css net::ERR_ABORTED 404(未找到)。
我使用刀片页面。
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
我尝试使用php artisan serve 和php -S localhost:8000 -t public,但展位不起作用。
【问题讨论】:
-
我的代码是:
登录 登录
{!! Form::open(['route' => 'user.login', 'method' => 'post']) !!}访问系统
-
css/app.css放在哪里? -
C:\xampp\htdocs\project\resources\css
-
css 和 js 文件必须在 public 文件夹中...
-
你真的编译了你的资产吗?
npm run dev还是npm run watch? The manual