Configuration
To configure pree
, either provide params and options to the CLI:
pree build docs site -b repo
Or provide a config file:
# .pree.yml
src: docs
dest: site
base: repo
# 👆 running `pree build` with this config file
# is equivalent to running the previous command.
A config file is normally a YAML file named .pree.yml
located at working directory, but its name and address can also be configured. The config file
is treated as a convenient default, any options provided to the CLI will override the config file.
Config | CLI | Description | |
---|---|---|---|
|
first param |
The source of website content. |
CLI Example
Config Example
|
|
second param |
The destination of the built website. |
CLI Example
Config Example
|
|
|
The base path of the website. |
CLI Example
Config Example
|
|
|
Automatically inject the base path into HTML files.
|
CLI Example
Config Example
|
|
|
A glob pattern to include files for build.
|
CLI Example
Config Example
|
|
|
A glob pattern to exclude files from build.
|
CLI Example
Config Example
|
|
|
The port to serve the website on. |
CLI Example
Config Example
|
|
|
View the website in production mode. |
CLI Example
Config Example
|
|
|
The number of concurrent pages to build at once. |
CLI Example
Config Example
|
|
|
The root path of the website. |
CLI Example
Config Example
|
|
The log level of the CLI. |
Config Example
|
|
|
The path to the config file. |
CLI Example
| |
|
Show verbose output. |
CLI Example
|
|
|
Silent mode. |
CLI Example
|
Build-Only Scripts
Using Components >