# Include some files in dist IF !production build

**URL:** <https://discuss.emberjs.com/t/include-some-files-in-dist-if-production-build/7145>\
**Category:** Ember CLI\
**Created:** [January 23, 2015, 2:12pm UTC](https://discuss.emberjs.com/t/include-some-files-in-dist-if-production-build/7145 "2015-01-23T14:12:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukesarge](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lukesarge/32/10185_2.png) [@lukesarge](https://discuss.emberjs.com/u/lukesarge)\
**Post date:** [January 23, 2015, 2:12pm UTC](https://discuss.emberjs.com/t/include-some-files-in-dist-if-production-build/7145/1 "2015-01-23T14:12:09Z")

</div>

I’d like to include a folder containing some static files in the ‘dist’ output directory unless the project is being built for production.

Can I configure this in broccoli? I know it does something similar with the test files but there is a LOT of code in the broccoli/ember-app.js file that seems to be doing this.

I was hoping for it to be a simple config.

---

<div class="post-metadata">

**Author:** ![Panman8201](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/panman8201/32/17727_2.png) [@Panman8201](https://discuss.emberjs.com/u/Panman8201)\
**Post date:** [January 23, 2015, 5:41pm UTC](https://discuss.emberjs.com/t/include-some-files-in-dist-if-production-build/7145/2 "2015-01-23T17:41:56Z")

</div>

Sure! Couple ways, either using `.import()` for each file or using an `if` statement with the environment flag for [“pickFiles” (AKA broccoli-static-compiler)](http://www.ember-cli.com/#using-broccoli-static-compiler).

```
// in your Brocfile.js

// each file individually
app.import({
    production: false,
    development: 'path/to/file'
});

// using pick files
if (app.env !== 'production') {
    var extraAssets = pickFiles('path/to/folder', {
        srcDir: '/',
        files: ['*.jpg'],
        destDir: '/assets/images'
    });
    app = app.toTree(extraAssets);
}

```

Take a look at the ember-cli documentation for details: [The Ember CLI - Introduction - Ember CLI Guides](http://www.ember-cli.com/#environment-specific-assets)
