Created
December 2, 2016 18:44
-
-
Save mcade/d1b1138172cdc9144075f2a95862cf97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
@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!
@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
Did you ever find a solution to this? I have the same problem.