# Exclude jekyll-feed in development environment?

**URL:** <https://talk.jekyllrb.com/t/exclude-jekyll-feed-in-development-environment/2681>\
**Category:** Uncategorized\
**Created:** [February 27, 2019, 7:20pm UTC](https://talk.jekyllrb.com/t/exclude-jekyll-feed-in-development-environment/2681 "2019-02-27T19:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [February 28, 2019, 12:56pm UTC](https://talk.jekyllrb.com/t/exclude-jekyll-feed-in-development-environment/2681/4 "2019-02-28T12:56:00Z")

</div>

> [@NewbieDan](#):
>
> adds about 5 seconds to the build time

How did you reach to this conclusion?  
Are you developing on Windows?

> [@NewbieDan](#):
>
> Got any other ideas?

A few:

- If you’re on Windows, ensure that you’ve listed &nbsp; `gem 'wdm'` in your Gemfile.
- Use the `--incremental` switch (shorthand:`-I`) to process only those files that change:

```auto
bundle exec jekyll serve -I

```

Now, when you make changes to a particular “post” or “page”, only those and their layouts / includes are _“re-processed”_. The feed will still be generated but the total build time will be much lesser.
- You can always disable a plugin by commenting it out in the `_config.yml`

```auto
plugins:
# - jekyll-feed
- jekyll-sitemap

```

and uncomment before commiting changes.
- You can maintain _two separate config files_ if the above is tiresome. For example, a regular `_config.yml` for production builds on GitHub Pages and the other named a `_config_dev.yml` for local builds.  
Then simply use the latter as following:

```auto
bundle exec jekyll serve --config _config_dev.yml

```

Note: For either of the last two options to work you’ve to ensure the following:

- you’re not using a “theme” that has listed `jekyll-feed` as its `dependency` / `runtime_dependency`.
- you’ve not listed `jekyll-feed` in the `:jekyll_plugins` group in your Gemfile.

---

_[View the full topic](https://talk.jekyllrb.com/t/exclude-jekyll-feed-in-development-environment/2681)._
