LessUnit

flitter-less/LessUnit~ LessUnit

new LessUnit(style_path)

Source:

Initialize the class and get the Less file dir.

Parameters:
Name Type Default Description
style_path string ./app/assets/less

Path to the *.less files to be served.

Methods

(async) go(app, context) → {Promise.<void>}

Source:

Initialize the unit. Registers the Less compiler with the underlying Express app.

Parameters:
Name Type Description
app module:libflitter/app/FlitterApp~FlitterApp
context module:libflitter/Context~Context
Returns:
Type
Promise.<void>