【问题标题】:WebStorm is not refreshing files when using gulp.watch使用 gulp.watch 时 WebStorm 不刷新文件
【发布时间】:2015-02-27 17:49:41
【问题描述】:

我正在使用 WebStorm 9,我有一个非常基本的 gulp 文件脚本设置来将 1 个文件从目录 src 复制到目录 build

我发现在更改src 目录中index.html 文件的内容时,gulp 会将文件很好地复制到build 目录...但是除非我使用File | Synchronize,否则WebStorm 不会显示这一点。

这是为什么?如何在不使用 File | Synchronize 的情况下让 WebStorm 显示更改?

我的 gulp 文件包含以下内容:

var gulp = require('gulp')

gulp.task('copyme', function(){
    return gulp.src('./src/index.html')
        .pipe(gulp.dest('./build/index.html'));
});
gulp.task('watch', function(){
    gulp.watch('./src/index.html', ['copyme']);
})

【问题讨论】:

    标签: gulp webstorm gulp-watch


    【解决方案1】:

    IDEA-136705 已作为修复关闭,修复应该在 WebStorm 10 中可用

    【讨论】:

      猜你喜欢
      • 2013-01-20
      • 2013-03-12
      • 1970-01-01
      • 2015-07-11
      • 1970-01-01
      • 2014-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多