How to use the @angular/service-worker/build.gulpAddStaticFiles function in @angular/service-worker

To help you get started, we’ve selected a few @angular/service-worker 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 webmaxru / pwa-guide-ngpoland / gulpfile.ts View on Github external
gulp.task('task:service-worker', () => gulp
  .src('ngsw-manifest.json')
  .pipe(gulpAddStaticFiles(gulp.src([
    'dist/**/*.*'
  ]), {manifestKey: 'static'}))
  .pipe(gulp.dest('dist'))
);
github webmaxru / pwa-guide-ngpoland / gulpfile.js View on Github external
gulp.task('task:service-worker', function () { return gulp
    .src('ngsw-manifest.json')
    .pipe(build_1.gulpAddStaticFiles(gulp.src([
    'dist/**/*.*'
]), { manifestKey: 'static' }))
    .pipe(gulp.dest('dist')); });
gulp.task('connect', function () {