Skip to content

Commit

Permalink
added manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lu authored and Alex Lu committed May 18, 2015
1 parent aa2e975 commit 7fae870
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gulpfile.js/tasks/production.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
var gulp = require('gulp');

// Run this to compress all the things!
gulp.task('production', ['minifyImg', 'minifyCss', 'uglifyJs'], function() {
gulp.task('production', ['minifyImg', 'minifyCss', 'uglifyJs', 'webconfig', 'manifest']);


gulp.task('webconfig', function() {
return gulp.src('./src/web.config')
.pipe(gulp.dest('./build'));
});

gulp.task('manifest', function() {
return gulp.src('./src/manifest.json')
.pipe(gulp.dest('./build'));
});
1 change: 1 addition & 0 deletions src/htdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="app.css">
<link rel="manifest" href="manifest.json">
</head>
<body>
<script src="main.js"></script>
Expand Down
13 changes: 13 additions & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"start_url": "http://contosotravel.azurewebsites.net",
"short_name": "ContosoTravel",
"icons": [
{
"src": "http://contosotravel.azurewebsites.net/images/logo.png",
"sizes": "150x150"
}
],
"display": "fullscreen",
"orientation": "any",
"name": "ContosoTravel"
}

0 comments on commit 7fae870

Please sign in to comment.