Home > purgecss > setOptions

setOptions() function

Load the configuration file from the path

Signature:

export declare function setOptions(configFile?: string): Promise<Options>;

Parameters

ParameterTypeDescription
configFilestring(Optional) Path of the config file

Returns:

Promise<Options>

The options from the configuration file

Exceptions

Error This exception is thrown if the configuration file was not imported