Created
December 23, 2019 14:15
-
-
Save alexpermiakov/00b94a32b1cdd20f2efe8f82f522580a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { src, dest, series } = require("gulp"); | |
const minify = require("gulp-minify"); | |
const template = require("gulp-template"); | |
const copyServiceWorker = () => | |
src("./src/sw.js") | |
.pipe(minify()) | |
.pipe(dest("dist/")) | |
.pipe(template({ buildVersion: +new Date() })) | |
.pipe(dest("./dist")); | |
exports.default = series( | |
// ... | |
copyServiceWorker, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment