Style manager. It manage style files for components. Usually used with component manage.
Methods
(static) add(feature, component)
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)
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)
Remove a style file for a component.
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
component |
string | The component name. |