From 4e8fbec28fa138e0687351124db6b2b189321083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kuna?= <1282324+codecalm@users.noreply.github.com> Date: Tue, 1 Nov 2022 11:23:49 +0100 Subject: [PATCH] exclude `playgrounds` from build (#1342) --- .gitignore | 1 + _config_prod.yml | 4 ++++ gulpfile.js | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 _config_prod.yml diff --git a/.gitignore b/.gitignore index 4b905ee11..cad50da4f 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ node_modules/ /components/ /percy.sh /src/pages/playground.html +/src/pages/playground-*.html /src/pages/features.html \ No newline at end of file diff --git a/_config_prod.yml b/_config_prod.yml new file mode 100644 index 000000000..c39de38fb --- /dev/null +++ b/_config_prod.yml @@ -0,0 +1,4 @@ +exclude: + - redirects.json + - playground.html + - playground-*.html \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index de2a07239..db384660b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -363,7 +363,7 @@ gulp.task('build-jekyll', (cb) => { env.JEKYLL_ENV = 'production' } - return spawn('bundle', ['exec', 'jekyll', 'build', '--destination', demoDir, '--trace'], { + return spawn('bundle', ['exec', 'jekyll', 'build', '--destination', demoDir, '--trace', '--config', '_config.yml,_config_prod.yml'], { env: env, stdio: 'inherit' })