I'm not sure if I'm missing something else that would be used for rewriting those links in the index.html, but adding { base: '.' } as the second argument to gulp.src (conform https://github.com/gulpjs/gulp/issues/151#issuecomment-41508551) addresses the issue and puts the files where the index.html expects them.
The code specifying the
package
task:https://github.com/hakimel/reveal.js/blob/0582f57517c97a4c7bfeb58762138c78883f94c5/gulpfile.js#L250-L257 Grabs all the files fromdist
,plugin
, etc. and puts them in the root of the created zip (i.e. without thedist
,plugin
, etc.). This causes the links to these files from theindex.html
to be broken.I'm not sure if I'm missing something else that would be used for rewriting those links in the
index.html
, but adding{ base: '.' }
as the second argument togulp.src
(conform https://github.com/gulpjs/gulp/issues/151#issuecomment-41508551) addresses the issue and puts the files where theindex.html
expects them.