Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rushBuild.execute(build.getConfig()).then(() => {
isBuilding = false;
// After build is complete, trigger reload.
build.reload.execute(build.getConfig());
if (buildEnqueued) {
startRun();
}
}).catch(() => {
isBuilding = false;
);
child.stdout.on('data', data => rawStdout.write(data));
child.on('close', done);
});
const sourceMatch = [
'src/**/*.{ts,tsx,scss,js,txt,html}',
'!src/**/*.scss.ts'
];
build.task('serve', serial(
build.serve,
build.watch(sourceMatch, serial(
rushBuild,
build.reload
))));
build.initialize(require('gulp'));