style

Style manager. It manage style files for components. Usually used with component manage.

Source:

Methods

(static) add(feature, component)

Source:

Add a style file for a component. It create the style file with the extension 'cssExt' configured in 'rekit' section of package.json.

Example
const style = require('rekit-core').style;

// create a file named 'Hello.less' in feature 'home'.
style.add('home', 'Hello');
Parameters:
Name Type Description
feature string

The feature name.

component string

The component name.

(static) remove(feature, component)

Source:

Move/rename a style file for a component.

Parameters:
Name Type Description
feature string

The feature name.

component string

The component name.

(static) remove(feature, component)

Source:

Remove a style file for a component.

Parameters:
Name Type Description
feature string

The feature name.

component string

The component name.