Skip to content

Documentation

Carlgi Henrique edited this page Feb 26, 2022 · 1 revision

CSSObject

Main class/Interface

new CSSObject(options: object)

on instance, you can set the parameter options

options(options: object)

set options options: a object (dict style) to define: only_files, ignore_files and/or load_min, see default options:

{
  only_files: [],
  ignore_files: [],
  load_min: true,
}

local(callback: Function, all: boolean)

callback: fn(sheet: Stylesheet, index: number)

all: if true callback param sheet is array of Stylesheet

external(callback: Function)

callback: fn(sheet: Stylesheet)

Stylesheet

return of callbacks in CSSObject.js