The following is a list of Siphon's configuration parameters and what they do:
The output folder for the bundled project. The default is './build'
.
The root folder to watch during automatic bundling. The default is './src'
Relations are links between base HTML files in the root directory and their bundled outputs in the output directory. The relations
parameter in the config file holds an array of these links.
For example, the config file:
module.exports = {
rootDir: "src",
outDir: "build",
relations: [{ from: "start.html", to: "index.html" }]
}
}
has only one relation.
This instructs the Siphon core compiler to start bundling from src/start.html
and release the bundled file as build/index.html
.
Determines whether the bundler should write all external Javascript into the HTML file. The default value is false
.
Determines whether React's JSX syntax should be parsed along with regular javascript. Each JSX element will be replaced with its DOM equivalent. The default value is false
.
Determines whether the bundler should write all external stylesheets into the HTML file. The default is false
.
This parameter is experimental, and could exponentially increase your project load time, so it should only be used with very small projects and files.
When set to true, Siphon will compress *ALL* your assets into the HTML file, including all script files, stylesheets and images. The default value is false
.
Determines whether the output files should be formatted. The default value is false
.
Determines whether images should stay at the root of the build folder or be packed up nicely into an img
folder. The default value is false
.