Sometimes apps go into production not at the root of a server, but under some
virtual directory/context path, e.g. http://example.com/my-app/
This commit introduces a :context-path option that can be added to assets. In
the above example, adding :context-path "/my-app" to all assets saves you the
hassle of actually creating said directory in resources/public and having to
mention said directory name in build configurations etc.
:context-path also enables you to ignore the context path at development time,
and easily change it in one place.
Sometimes apps go into production not at the root of a server, but under some virtual directory/context path, e.g. http://example.com/my-app/
This commit introduces a
:context-path
option that can be added to assets. In the above example, adding:context-path "/my-app"
to all assets saves you the hassle of actually creating said directory inresources/public
and having to mention said directory name in build configurations etc.:context-path
also enables you to ignore the context path at development time, and easily change it in one place.