sparanoid / grunt-service-worker Goto Github PK
View Code? Open in Web Editor NEWGrunt sw-precache wrapper
License: MIT License
Grunt sw-precache wrapper
License: MIT License
I'm getting around this, but it would be great to have that support.
module.exports = {
options: {
workerFile: 'sw.js'
},
build: {
options: {
baseDir: './dist'
}
},
dev: {
options: {
baseDir: ['./public', './tmp'], // multiple directories :)
workerDir: './tmp'
}
}
};
Does it make sense to support more than one directory?
2.0.0
to 2.1.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
grunt-contrib-nodeunit is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
d370717
v2.1.0
02089d5
Clean up and update to latest contrib (#58)
deca505
Upgrade nodeunit-x from 0.12.1 to 0.13.0 and tap from ^12.0.1 to ^14.10.6 (#57)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | sw-precache |
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
package.json
sw-precache ^5.2.1
grunt ^1.0.3
grunt-bump ^0.8.0
grunt-contrib-clean ^2.0.0
grunt-contrib-jshint ^2.0.0
grunt-contrib-nodeunit ^2.0.0
grunt-conventional-changelog ^6.1.0
grunt-npm 0.0.2
matchdep ^2.0.0
grunt >=0.4.0
node >= 0.8.0
.travis.yml
node 10
With grunt-sw-precache, I am trying to cache my application:
'develop': {
navigateFallback: 'index.html',
staticFileGlobs: [ '**/*.{js}'],
stripPrefix: 'app',
baseDir:'app',
runtimeCaching: [{
handler: 'networkFirst'
}]
},
},
I tried different patterns. Always the same result
`My directory structure looks like this: projectRoot
______app
__________images
__________styles
__________controllers
__________jsFilesHere
___________app.js
_____________config.js
_____________index.html
_____________sw.js
I need to cache all my files to enable the application to run offline as well. For that matter I need to cache my entire app folderHow do I change thisstaticFileGlobs: ['index.html','/app/**/.{js,html,css,png,jpg,gif}'],to be able to get this working?I tried replacing it with:staticFileGlobs: ['.*'] as well. but yet I get the same message.`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.