This is a Middleman application level config option.
Indicates where Middleman will put build output. This standard config
value will be treated as a prefix; for example if the current target is
:pro
and this value is set to its default build
, then the actual build
directory will be build (pro)/
.
If the build_dir
key is present for any of the config[:targets]
, they
will override this setting.
This is a Middleman application level config option.
Indicates the current target that is being built or served. When
set in config.rb
it indicates the default target if one is not
specified on the command line.
This is a Middleman application level config option.
This option is used to enable or disable the target magic images feature.
If it’s true
then the image_tag
helper will attempt to substitute
target-specific images instead of the specified image, if the specified
image begins with :target_magic_word
.
This is a Middleman application level config option.
Indicates the magic image prefix for image substitution with the
image_tag
helper when :target_magic_images
is enabled. For example
if you specify all-image.png
and pro-image.png
exists, then the
latter will be used by the helper instead of the former.
This is a Middleman application level config option.
A hash that defines all of the characteristics of your individual targets.
The build_dir
and features
keys in a target have special meanings;
other keys can be added arbitrarily and helpers can fetch these for you.
A best practice is to assign the same features to all of your targets and
toggle them on
or off
on a target-specific basis.