jmc-88 / grunt-appcache Goto Github PK
View Code? Open in Web Editor NEWGrunt task for generating an HTML5 AppCache manifest.
Home Page: https://www.npmjs.com/package/grunt-appcache
License: MIT License
Grunt task for generating an HTML5 AppCache manifest.
Home Page: https://www.npmjs.com/package/grunt-appcache
License: MIT License
The cached resource is not the same domain with html page. So I have to prepend the cdn base to cache entry.
got this error when i first used this plugin. Problem is that:
var original = appcache.readManifest(output);
gives false as result since no manfiest file is present first time around (i think)
simple fix would be to replace:
manifest.version.revision = (1 + original.version.revision);
to
if (original !== false) {
manifest.version.revision = (1 + original.version.revision);
} else {
manifest.version.revision = 1;
}
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm ls CSSselect
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
Fixed on cheerio side:
https://github.com/cheeriojs/cheerio/blob/master/package.json#L28
It'd be nice if the arrays would support the same features like the standard grunt array format. Namely I'd like to do this:
cache: [
'dist/*.js',
'!dist/shouldNotBeCached.*.js',
],
Is there a way to achieve that today that I missed?
It looks like this grunt task does not add the manifest
option to the <html>
tag, which would be convenient!
I'd like to set the cache:
option like this
cache: [
'www/*.js',
'www/*.css',
'/'
],
And would expect the result to look like this
CACHE MANIFEST
# rev 1 - 2014-06-18T18:37:59.432Z
CACHE:
app.js
app.css
/
Is there a way to achieve that?
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.