We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
project/0
1 parent 8eba863 commit 12780b1Copy full SHA for 12780b1
lib/mix/lib/mix/project.ex
@@ -75,6 +75,14 @@ defmodule Mix.Project do
75
the `:erlc_paths` configuration is used by `mix compile.erlang`, `mix compile.yecc`,
76
and other tasks.
77
78
+ > #### Keep `project/0` fast {: .warning}
79
+ >
80
+ > `project/0` is called whenever your `mix.exs` is loaded, so heavy
81
+ > computation should be avoided. If a task requires a potentially complex
82
+ > configuration value, it should allow its configuration to be set to an
83
+ > anonymous function or similar, so that it can be invoked only when
84
+ > needed by the task itself.
85
+
86
## CLI configuration
87
88
Mix is most often invoked from the command line. For this purpose, you may define
0 commit comments