From 0b9037fb11700d2f1a879d2829d7f39fce362ca5 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Wed, 26 Feb 2020 16:43:44 +0800 Subject: [PATCH] feat: upgrade reveal.js to 3.9.2 remove headjs dependency after 3.8.0 and update lock file Signed-off-by: Max Wu --- package-lock.json | 6 +++--- package.json | 2 +- public/views/slide.ejs | 5 ++--- webpack.common.js | 2 -- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 957bad66..6a5d6ddf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13086,9 +13086,9 @@ } }, "reveal.js": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/reveal.js/-/reveal.js-3.7.0.tgz", - "integrity": "sha512-HTOTNhF5mQAw6fcsptk4oql/DEEUwTG0YHk/LzTNNx0/3IgvOQZqKzvlK/zNpqqKMLlhn1gH9Nvp+FFoc/e5/w==" + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/reveal.js/-/reveal.js-3.9.2.tgz", + "integrity": "sha512-Dvv2oA9FrtOHE2DWj5js8pMRfwq++Wmvsn1EyAdYLC80lBjTphns+tPsB652Bnvep9AVviuVS/b4XoVY9rXHLA==" }, "rgb-regex": { "version": "1.0.1", diff --git a/package.json b/package.json index f750e986..fe307209 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ "raphael": "~2.2.8", "readline-sync": "~1.4.7", "request": "~2.88.0", - "reveal.js": "~3.7.0", + "reveal.js": "~3.9.2", "scrypt": "~6.0.3", "select2": "~3.5.2-browserify", "sequelize": "5.21.3", diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 696b3e93..22f12091 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -18,7 +18,7 @@ <% if(useCDN) { %> - + <%- include build/slide-header %> <%- include shared/polyfill %> @@ -88,8 +88,7 @@ <% if(useCDN) { %> - - + diff --git a/webpack.common.js b/webpack.common.js index ac4b538e..e78c3740 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -364,7 +364,6 @@ module.exports = { 'script-loader!vega', 'script-loader!vega-lite', 'script-loader!vega-embed', - 'headjs', 'expose-loader?Reveal!reveal.js', 'expose-loader?RevealMarkdown!reveal-markdown', path.join(__dirname, 'public/js/slide.js') @@ -391,7 +390,6 @@ module.exports = { 'jquery-ui-resizable': path.join(__dirname, 'public/vendor/jquery-ui/jquery-ui.min.js'), 'gist-embed': path.join(__dirname, 'node_modules/gist-embed/gist-embed.min.js'), 'bootstrap-tooltip': path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.js'), - 'headjs': path.join(__dirname, 'node_modules/reveal.js/lib/js/head.min.js'), 'reveal-markdown': path.join(__dirname, 'public/js/reveal-markdown.js'), abcjs: path.join(__dirname, 'public/vendor/abcjs_basic_3.1.1-min.js'), raphael: path.join(__dirname, 'node_modules/raphael/raphael.min.js'),