diff --git a/public/js/slide.js b/public/js/slide.js index fa4adcb5e..4962470ec 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -36,7 +36,7 @@ function extend() { // Optional libraries used to extend on reveal.js var deps = [{ - src: serverurl + '/vendor/reveal.js/lib/js/classList.js', + src: serverurl + '/build/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } @@ -53,7 +53,7 @@ var deps = [{ $(".slides").show(); } }, { - src: serverurl + '/vendor/reveal.js/plugin/notes/notes.js', + src: serverurl + '/build/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; diff --git a/public/views/slide.ejs b/public/views/slide.ejs index bfc5eddf5..0a2d82149 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -14,6 +14,10 @@ <%= title %> + + + + <% if(useCDN) { %> @@ -25,11 +29,10 @@ <%- include build/slide-pack-header %> <% } %> - - - + + - + @@ -38,7 +41,7 @@ var link = document.createElement( 'link' ); link.rel = 'stylesheet'; link.type = 'text/css'; - link.href = '<%- url %>/vendor/reveal.js/' + (window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css'); + link.href = '<%- url %>/build/reveal.js/' + (window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css'); document.getElementsByTagName( 'head' )[0].appendChild( link ); diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 998191bac..fa9d03133 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -136,6 +136,14 @@ module.exports = { dot: false }, to: 'emojify.js/' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: { + glob: '**/*', + dot: false + }, + to: 'reveal.js/' } ]) ],