首頁 > purgecss > setOptions
setOptions() 函式
從路徑載入組態檔
簽章
export declare function setOptions(configFile?: string): Promise<Options>;
參數
參數 | 類型 | 說明 |
---|---|---|
configFile | 字串 | (選用) 組態檔路徑 |
傳回
Promise<Options>
組態檔中的選項
例外
錯誤 如果未匯入組態檔,就會擲回此例外
首頁 > purgecss > setOptions
從路徑載入組態檔
簽章
export declare function setOptions(configFile?: string): Promise<Options>;
參數 | 類型 | 說明 |
---|---|---|
configFile | 字串 | (選用) 組態檔路徑 |
傳回
Promise<Options>
組態檔中的選項
錯誤 如果未匯入組態檔,就會擲回此例外