jekyll Building a Jekyll site folder Building with a specific Jekyll environment

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

you can set a Jekyll environment and value, when build time

JEKYLL_ENV=production jekyll b
JEKYLL_ENV=production jekyll build
JEKYLL_ENV=production bundle exec jekyll build

if your code contains the bellow snippet, analytics.html will not be included unless your building with JEKYLL_ENV=production

{% if jekyll.environment == "production" %}

   {% include analytics.html %}

{% endif %}


Got any jekyll Question?