Added appcache manifest - Fix #39
This commit is contained in:
parent
eddd070d40
commit
54c84c43b2
4
app/app.manifest
Normal file
4
app/app.manifest
Normal file
@ -0,0 +1,4 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
NETWORK:
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en" ng-app="myApp"><!-- ng-csp="" -->
|
||||
<html lang="en" ng-app="myApp" manifest=app.manifest><!-- manifest=app.manifest --><!-- ng-csp="" -->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
|
16
gulpfile.js
16
gulpfile.js
@ -111,17 +111,33 @@ gulp.task('disable-production', function() {
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('add-appcache-manifest', function() {
|
||||
return gulp.src('./dist/**/*')
|
||||
.pipe($.manifest({
|
||||
timestamp: true,
|
||||
network: ['http://*', 'https://*', '*'],
|
||||
filename: 'app.manifest',
|
||||
exclude: 'app.manifest'
|
||||
}))
|
||||
.pipe(gulp.dest('./dist'));
|
||||
});
|
||||
|
||||
|
||||
gulp.task('clean', function() {
|
||||
return gulp.src(['dist/*', '!dist/.git']).pipe($.clean());
|
||||
});
|
||||
|
||||
gulp.task('bump', ['update-version-manifests', 'update-version-settings', 'update-version-comments']);
|
||||
|
||||
gulp.task('build', ['templates', 'usemin', 'copy'], function () {
|
||||
gulp.start('disable-production');
|
||||
});
|
||||
gulp.task('package', ['cleanup-dist']);
|
||||
|
||||
gulp.task('publish', ['build'], function() {
|
||||
gulp.start('add-appcache-manifest');
|
||||
});
|
||||
|
||||
gulp.task('default', ['clean'], function() {
|
||||
gulp.start('build');
|
||||
});
|
||||
|
@ -31,6 +31,7 @@
|
||||
"gulp-concat": "^2.1.7",
|
||||
"gulp-grep-stream": "0.0.2",
|
||||
"event-stream": "^3.1.0",
|
||||
"gulp-zip": "^0.1.2"
|
||||
"gulp-zip": "^0.1.2",
|
||||
"gulp-manifest": "0.0.3"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user