为什么Laravel CSS(style.css)没有加载而'stdin'正在加载css?

This is how I added css file. CSS file is in public/css/style.css.

<link rel="stylesheet" href="{{ URL::asset('css/style.css') }}">
php

1个回答



在gulpfile.js上禁用* .css.map功能</ strong>

最后,解决了 问题。 问题背后的原因是,对于每个编译的文件,elixir在同一目录中的伴随* .css.map文件。 并且* .css.map文件正在重定向stdin文件中的sass文件,这使得php服务器混乱,css加载。 我通过在elixir mix函数之前将行放在gulpfile.js中来停止自动创建文件。</ p>

  elixir.config.sourcemaps = false; 
</ code> </ pre>
</ div>

展开原文

原文

Disabling the *.css.map functionality at gulpfile.js
At last, Solved the issue. Reason behind the problem is, for each file that is compiled, a companion *.css.map file in the same directory by elixir. And the *.css.map file was redirecting the sass file in stdin file, that made the php server confused, which css to load. I stopped the file from being automatically created by putting the line in gulpfile.js before the elixir mix function.

elixir.config.sourcemaps = false;

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐