Skip to content

Instantly share code, notes, and snippets.

@mcade
Created December 2, 2016 18:44
Show Gist options
  • Save mcade/d1b1138172cdc9144075f2a95862cf97 to your computer and use it in GitHub Desktop.
Save mcade/d1b1138172cdc9144075f2a95862cf97 to your computer and use it in GitHub Desktop.
Interactive Elixir (1.3.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 02 Dec 10:34:51 - info: compiling
Elm compile: Main.elm, in web/elm, to ../static/js/elm.js
[BABEL] Note: The code generator has deoptimised the styling of "web/static/js/elm.js" as it exceeds the max of "100KB".
02 Dec 10:36:30 - info: compiling.
[info] GET /about-us
[debug] Processing by MyApp.PageController.index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 357ms
02 Dec 10:36:34 - info: compiling..
[debug] Live reload: priv/static/js/app.js
02 Dec 10:36:35 - info: compiled 38 files into 2 files, copied 15 in 114.3 sec
@ferikeng
Copy link

Did you ever find a solution to this? I have the same problem.

@bchase
Copy link

bchase commented Mar 3, 2017

@erikjohannesson I think I may have!

[BABEL] Note: The code generator has deoptimised the styling of "web/static/js/elm.js" as it exceeds the max of "100KB".

I wasn't getting this locally, but seeing it here made me realize that Babel is processing my >300kb elm.js file that elm-brunch is dropping into web/static. The adjustment I made that dramatically sped things up for me was this change in my brunch-config.js:

exports.config = {
  plugins: {
    babel: {
      ignore: [ /elm.js$/ ], // <-- ignore paths like `web/static/js/elm.js`
    },
  },
}

Hope this speeds things up for you too!

@ferikeng
Copy link

@bchase that does help. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment