# Jekyll Minify Not Working

**URL:** <https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502>\
**Category:** Help\
**Created:** [January 9, 2019, 10:08pm UTC](https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502 "2019-01-09T22:08:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcabrera83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pcabrera83/32/1308_2.png) [@pcabrera83](https://talk.jekyllrb.com/u/pcabrera83)\
**Post date:** [January 9, 2019, 10:08pm UTC](https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502/1 "2019-01-09T22:08:23Z")

</div>

I installed Jekyll Minify and it’s not working. It does not minify HTML, CSS or JS on `jekyll build`.

I `FTP` the `_site` with FileZilla. Any idea why this is happening?

**Repository**

> **[pcabrera83/coyoteflacoct](https://github.com/pcabrera83/coyoteflacoct)**
>
> Contribute to pcabrera83/coyoteflacoct development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [January 10, 2019, 12:11am UTC](https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502/2 "2019-01-10T00:11:19Z")

</div>

Are you building your site with the [`JEKYLL_ENV=production`](https://jekyllrb.com/docs/configuration/environments/) enabled?

If not that’s your problem. As per jekyll-minifer’s docs:

> \*\* This minifier now only runs when JEKYLL\_ENV=“production” is set in the environment \*\*

---

<div class="post-metadata">

**Author:** ![pcabrera83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pcabrera83/32/1308_2.png) [@pcabrera83](https://talk.jekyllrb.com/u/pcabrera83)\
**Post date:** [January 10, 2019, 12:36am UTC](https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502/3 "2019-01-10T00:36:03Z")

</div>

> [@mmistakes](#):
>
> JEKYLL\_ENV=“production”

Where should I insert the tag?

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [January 10, 2019, 1:28am UTC](https://talk.jekyllrb.com/t/jekyll-minify-not-working/2502/4 "2019-01-10T01:28:13Z")

</div>

You don’t insert it anywhere. It’s an environment variable.

For Mac and Unix

```auto
JEKYLL_ENV=production jekyll build

```

For Windows

```auto
set JEKYLL_ENV=production
jekyll build

```
