How to use the @microsoft/web-library-build.reload function in @microsoft/web-library-build

To help you get started, we’ve selected a few @microsoft/web-library-build examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / apps / fabric-examples / gulpfile.js View on Github external
rushBuild.execute(build.getConfig()).then(() => {
        isBuilding = false;

        // After build is complete, trigger reload.
        build.reload.execute(build.getConfig());

        if (buildEnqueued) {
          startRun();
        }
      }).catch(() => {
        isBuilding = false;
github OfficeDev / office-ui-fabric-react / apps / todo-app / gulpfile.js View on Github external
);

  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'));