Build
Build all assets (Bare Mux, transports, proxy files, and chemical client scripts) into a folder.
Usage
Install chemicaljs
if you have not already.
Create a new build.
const build = new ChemicalBuild({
path: "dist",
default: "uv",
uv: true,
scramjet: true,
meteor: true,
rammerhead: false,
});
Write to the build path with build.write()
use build.write(true)
to first empty the directory.
Config
Property | Value | Description |
---|---|---|
path | string | Folder to build into. |
default | uv | scramjet | meteor | rammerhead | Sets the default proxy. |
uv | true | false | Enable Ultraviolet. |
experimental.scramjet | true | false | Enable Scramjet (default false). |
experimental.meteor | true | false | Enable Meteor (default false). |
rammerhead | true | false | Enable Rammerhead. |