From 64238538ae59d32ea97f3e1bc153da4702734db9 Mon Sep 17 00:00:00 2001 From: Burning-Panda <31665764+Burning-Panda@users.noreply.github.com> Date: Tue, 27 Oct 2020 21:33:43 +0100 Subject: [PATCH] Added building options available. As there is no explenation as to the options available when building the standalone app, I am proposing to add a short bit about how to build the standalone app and include how to change the static path to relative. See issue #482 and #483 --- docs/installation/standalone.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/installation/standalone.md b/docs/installation/standalone.md index f18c8cfb..63d4bc9d 100644 --- a/docs/installation/standalone.md +++ b/docs/installation/standalone.md @@ -74,3 +74,29 @@ python -m SimpleHTTPServer ### On Windows Use [xampp](https://www.apachefriends.org/de/index.html) or something similar. + + +## Building Catalog Standalone + +To build a standalone app use the following command in the catalog directory. +```code +catalog build +``` + +option("babelrc", "Use local .babelrc file (defaults to true)"); +Options available for building +- -o + Directory to build into + Default `/build` +- -u / -public-url + The URL where production assets get loaded from. + Default `/` + For relativ paths use `./` +- babelrc + Use local .babelrc file. + Defaults to true. + +To use relative paths use the following code to build +```code +catalog build -u "./" +```