Laravel Elixir不注意SASS导入文件的吞咽 [英] Laravel Elixir not watching SASS import files for gulp

查看:221
本文介绍了Laravel Elixir不注意SASS导入文件的吞咽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了elixir来监视.scss文件中的更改,但不会监视_partials.scss中的更改。

  elixir(函数(混合){

mix.browserSync([

'resources / assets / bower / bootstrap-sass / assets / ** / *'

],{

代理:'site.app',
reloadDelay:200

});

});

当我编辑bootstrap / _variables.scss时,gulp会编译这些sass更改。如果我退出gulp手表,然后再看一眼,那么就会出现这些变化。



所以我知道它的编译正确,它只是不知道怎么看这些部分文件。 >

有什么想法?提前致谢!

解决方案

这已经在repo的pull请求中。 ( https://github.com/laravel/elixir/pull/377



在修复之前,我现在要像里卡多一样应用相同的修复程序(请参阅 https://github.com/ricardogobbosouza/elixir/commit/948abb930e0d822a6fa6a8531d52a8d51632c59b


I have elixir set up to watch changes in .scss files, but changes in _partials.scss are not being watched.

elixir(function(mix){

   mix.browserSync([

      'resources/assets/bower/bootstrap-sass/assets/**/*'   

   ], {

     proxy: 'site.app',
     reloadDelay: 200

   });

});

When I edit the bootstrap/_variables.scss, gulp does compile those sass changes. If I exit gulp watch, and gulp watch again, then those changes appear.

So I know its compiling correctly, its just somehow not watching those partial files.

Any ideas? Thanks in advance!

解决方案

This is already in a pull request on the repo. (https://github.com/laravel/elixir/pull/377)

Until fixed, I'm gonna apply the same fix for now as Ricardo (see https://github.com/ricardogobbosouza/elixir/commit/948abb930e0d822a6fa6a8531d52a8d51632c59b)

这篇关于Laravel Elixir不注意SASS导入文件的吞咽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆