Browse Source

exclude `playgrounds` from build (#1342)

Paweł Kuna 2 years ago
parent
commit
4e8fbec28f
3 changed files with 6 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 4 0
      _config_prod.yml
  3. 1 1
      gulpfile.js

+ 1 - 0
.gitignore

@@ -22,4 +22,5 @@ node_modules/
 /components/
 /percy.sh
 /src/pages/playground.html
+/src/pages/playground-*.html
 /src/pages/features.html

+ 4 - 0
_config_prod.yml

@@ -0,0 +1,4 @@
+exclude:
+  - redirects.json
+  - playground.html
+  - playground-*.html

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