From 4be1964c5621682377a61eb84a9646f4004225bf Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Tue, 2 Nov 2021 22:03:48 +0100 Subject: [PATCH] Better embeding support + example --- gulp/tasks/copy.js | 2 +- html/embed.html | 6 ++++++ html/embed.js | 24 ++++++++++++++++++++++++ lib/main.js | 4 ++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 html/embed.html create mode 100644 html/embed.js diff --git a/gulp/tasks/copy.js b/gulp/tasks/copy.js index 885522c..323c6b1 100644 --- a/gulp/tasks/copy.js +++ b/gulp/tasks/copy.js @@ -1,6 +1,6 @@ module.exports = function (gulp, plugins, config) { return function copy() { - gulp.src(['html/*.html', 'assets/favicon/*']) + gulp.src(['html/*.html', 'html/*.js', 'assets/favicon/*']) .pipe(gulp.dest(config.build)); gulp.src(['assets/logo.svg', 'service-worker.js']) .pipe(gulp.dest(config.build)); diff --git a/html/embed.html b/html/embed.html new file mode 100644 index 0000000..a0113c3 --- /dev/null +++ b/html/embed.html @@ -0,0 +1,6 @@ + + + +