Laravel Elixir not watching SASS import files for gulp

六眼飞鱼酱① 提交于 2019-12-08 02:59:57

问题


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!


回答1:


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)



来源:https://stackoverflow.com/questions/33003164/laravel-elixir-not-watching-sass-import-files-for-gulp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!