From 7bf2ecacda9de40eb8bc7a7f46409c9555ca3cef Mon Sep 17 00:00:00 2001 From: Junliang Huang Date: Fri, 6 Jan 2017 02:24:00 +0800 Subject: [PATCH] Fix example typo (#231) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 243189e..70058d4 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ gulp.task('generate-service-worker', function(callback) { var swPrecache = require('sw-precache'); var rootDir = 'app'; - swPrecache.write(`${rootDir}/service-worker.js`), { + swPrecache.write(`${rootDir}/service-worker.js`, { staticFileGlobs: [rootDir + '/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff}'], stripPrefix: rootDir }, callback);