Skip to content

Commit

Permalink
Include the files, and reference them in the manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwinton committed Sep 15, 2015
1 parent c3a23f9 commit e3e4460
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
var gulp = require('gulp');
var zip = require('gulp-zip');

var files = ['manifest.json', 'background.js'];
var files = ['manifest.json', 'background.js', '*.png'];
var xpiName = 'catgifs.xpi';

gulp.task('default', function () {
gulp.src(files)
.pipe(zip(xpiName))
.pipe(gulp.dest('.'));
});

8 changes: 8 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"manifest_version": 2,
"icons": {
"48": "icon.png",
"128": "icon128.png"
},
"name": "Cat Gifs!",
"version": "1.0",
"applications": {
Expand All @@ -18,6 +22,10 @@
],

"browser_action": {
"default_icon": {
"19": "button.png",
"38": "button38.png"
},
"default_title": "Cat Gifs!"
}
}

0 comments on commit e3e4460

Please sign in to comment.