Settings - xlebpushek/gulp-configuration Wiki

Project path

The project path is the path to the directory where the directory structure with the source files should be located.

You can select it in the settings file or as an argument on the command line. The preferred choice is the one entered as a command line argument. If the project path is not selected with one of these options, it will be replaced with the current working directory.

Usage

Using a settings file

When specifying the project path in the settings file, you should use the generally accepted json format. I would like to note that the path must be absolute.

{
  "root": "/path",
  // Other settings
}
Using command line argument
gulp --root "/path"

Working mode

The mode of operation is the mode that will affect the performance of tasks and their options.

This assembly supports two modes of operation - production and development. You can select it in the settings file or as an argument on the command line. The preferred choice is the one entered as a command line argument. If the mode of operation is not selected by any of the parameters, then the assembly will work in development mode.

Usage

Using a settings file

When specifying the project path in the settings file, you should use the generally accepted json format. I would like to note that the value of the operating mode should be indicated with beginning dash characters (--).

{
  "mode": "--production",
  // Other settings
}
Using command line argument
gulp --production