Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Command Line Interface

Aniket Prajapati edited this page Jun 12, 2020 · 1 revision

Usage

   firejs <flag>

Flags

[-p, --pro]

  use production chunks. NODE_ENV : production

[-e, --export]

  export project for distribution

[-d, --disk]

  store chunks to disk instead of memory while in dev server

[-s, --ssr]

  Server Side Render. Available only with -d and -e

[-E, --export-fly]

  export project for distribution and for fly build

[-c, --conf]

  path to FireJS config file

[--verbose]

  print webpack stats on error

[-l, --log-mode]

  Log Mode. silent (log errors only) | plain (Log without styling i.e colors and symbols)

[--disable-plugins]

  disable plugins

[--root]

  path to project root, default : process.cwd()

[--src]

  path to src dir, default : root/src

[--pages]

  path to pages dir, default : root/src/pages

[--out]

  path to output dir, default : root/out

[--dist]

  path to dir where build is exported, default : root/out/dist

[--cache]

  path to cache dir, default : root/out/.cache

[--fly]

  path to dir where fly build is exported, default : root/out/fly

[--template]

  path to template file, default : inbuilt template file

[--lib]

  path to dir where chunks are exported, default : root/out/dist/lib

[--map]

  path to dir where chunk map and page data is exported, default : root/out/dist/lib/map

[--static]

  path to dir where static assets are stored eg. images, default : root/src/static

[--plugins]

  path to plugins dir, default : root/src/plugins

[-h, --help]

  print help

[-v, --version]

  print version

Example(s)

firejs -esp

  export server side rendered production build

firejs -dsp

  write to disk when using dev server with server-side rendered production build

🏡 Home

Getting Started
Advance
Tips and Tricks

🗒️ All examples in this documentation are written in typescript

Clone this wiki locally