# Read values from gulpfile.js?

**URL:** <https://discourse.gohugo.io/t/read-values-from-gulpfile-js/9084>\
**Category:** support\
**Created:** [November 2, 2017, 11:23pm UTC](https://discourse.gohugo.io/t/read-values-from-gulpfile-js/9084 "2017-11-02T23:23:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Merkel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/leo_merkel/32/3321_2.png) [@Leo\_Merkel](https://discourse.gohugo.io/u/Leo_Merkel)\
**Post date:** [November 2, 2017, 11:23pm UTC](https://discourse.gohugo.io/t/read-values-from-gulpfile-js/9084/1 "2017-11-02T23:23:20Z")

</div>

I produce my responsive images with gulp. In that gulpfile.js I have variables like `small = 320`, `medium = 768` and `large = 1200` which are used by the `gulp-responsive` plugin.

It would be great if I could read those values into a `partial/srcset.html` for implementing the correct images attributes like `suffix` or `w`.

Currently I have those values in `data/srcset.toml` from where I can bring them in the partial. But I have to maintain 2 sources.

Any idea?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [November 3, 2017, 8:40am UTC](https://discourse.gohugo.io/t/read-values-from-gulpfile-js/9084/2 "2017-11-03T08:40:31Z")

</div>

> [@Leo\_Merkel](#):
>
> Any idea?

```auto
process.env.SMALL = small

```

And then in template

```html
{{ $small := getenv "SMALL" }}

```

A related tip:

```auto
process.env.HUGO_BASEURL = "https://example.com"

```
