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' })