Typescript Gulp LiveReload不能与Electron合作

Typescript Gulp LiveReload不能与Electron合作,typescript,gulp,electron,livereload,Typescript,Gulp,Electron,Livereload,我有一个带有Typescript的电子应用程序。我的项目结构如下: 在/src中是分配给我的代码,在/www中是分配给我的编译(事实上是传输)代码的地方 基于以下示例,我使用gulp livereload制作了一个玩具练习: 而且效果很好!但在我的项目中并非如此 在my index.html中,我添加了以下行: <script src="http://localhost:35729/livereload.js"></script> 我的项目和我的例子有什么不同 提前

我有一个带有Typescript的电子应用程序。我的项目结构如下:

在/src中是分配给我的代码,在/www中是分配给我的编译(事实上是传输)代码的地方

基于以下示例,我使用gulp livereload制作了一个玩具练习:

而且效果很好!但在我的项目中并非如此

在my index.html中,我添加了以下行:

<script src="http://localhost:35729/livereload.js"></script>
我的项目和我的例子有什么不同


提前谢谢

我明白了!我忘了把任务放在gulp.wach:
gulp.watch(path.allFiles,[“compile”])gulp.watch(path.allFiles,[“compile”])
gulp.task("sass", function() {
return gulp.src(paths.sass)
    .pipe(sass())
    .on("error", sass.logError)
    .pipe(gulp.dest(outDir))
    .pipe(cleanCSS({
        compatibility: "ie8"
    }))
    .pipe(rename({
        extname: ".min.css"
    }))
    .pipe(gulp.dest(outDir))
    .pipe(livereload());
});

gulp.task("watch", ["compile"], function() {
livereload.listen();    
gulp.watch(["./src/**/*.scss", "./src/**/*.ts", "!./src/lib/**"], ["clean-min-sources"]);
gulp.watch(["./src/**/*", "!./src/**/*.ts", "!./src/**/*.scss"], ["copy-assets"]);
gulp.watch(["./src/**/*.*"]);    
});