Skip to content

Command Line Interface

Aniket Prajapati edited this page Jul 5, 2020 · 4 revisions

Usage

   firejsx <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

[--port]

  port for dev server, default: 5000

[--addr]

  address for dev server, default: localhost

[--disable-gzip]

  Disable gzip in dev server

[-V, --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)

firejsx -esp

  export server side rendered production build

firejsx -dsp

  write to disk when using dev server with server-side rendered production build
Clone this wiki locally