Remove index.json from stream, fix base

This commit is contained in:
Tom MacWright 2015-07-10 14:51:59 -04:00
parent e888748f1a
commit b3b3e10852

View File

@ -76,11 +76,6 @@ module.exports = function (opts) {
helpers(Handlebars, paths);
this.push(new File({
path: 'index.json',
contents: new Buffer(JSON.stringify(comments, null, 2), 'utf8')
}));
this.push(new File({
path: 'index.html',
contents: new Buffer(pageTemplate({
@ -92,7 +87,7 @@ module.exports = function (opts) {
callback();
}, function (callback) {
// push assets into the pipeline as well.
vfs.src([themeModule + '/assets/**'])
vfs.src([themeModule + '/assets/**'], { base: themeModule })
.on('data', function (file) {
this.push(file);
}.bind(this))