# Optimize elm compilation with webpack

**URL:** <https://discourse.elm-lang.org/t/optimize-elm-compilation-with-webpack/2191>\
**Category:** Learn\
**Created:** [October 12, 2018, 9:32am UTC](https://discourse.elm-lang.org/t/optimize-elm-compilation-with-webpack/2191 "2018-10-12T09:32:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [October 12, 2018, 7:03pm UTC](https://discourse.elm-lang.org/t/optimize-elm-compilation-with-webpack/2191/7 "2018-10-12T19:03:07Z")

</div>

I guess give this a go:

```
new UglifyJsPlugin({
  uglifyOptions: {
    compress: {
      pure_funcs: ['F2','F3','F4','F5','F6','F7','F8','F9','A2','A3','A4','A5','A6','A7','A8','A9'],
      pure_getters: true,
      keep_fargs: false,
      unsafe_comps: true,
      unsafe: true,
      passes: 3
    }
  }
})

```

I see it takes a ‘passes’ option.

---

_[View the full topic](https://discourse.elm-lang.org/t/optimize-elm-compilation-with-webpack/2191)._
