1.2.2 • Published 4 years ago

@asayerio/tracker-cssrules v1.2.2

Weekly downloads
82
License
MIT
Repository
github
Last release
4 years ago

Asayer Tracker CSSRules plugin

Tracker plugin to support dynamic style (insertRule and deleteRule). Useful for the applications using the styled-components.

Installation

npm i @asayerio/tracker-cssrules

Usage

Initialize the @asayerio/tracker package as usual and use css rules as a plugin. Then start the tracker.

Plugin replaces original insertRule and deleteRule to keep track of their calls. Thus, you should initialize plugin via .use before any call of these functions (before any render of your Styled Components).

import Tracker from '@asayerio/tracker';
import trackerCSSRules from '@asayerio/tracker-cssrules';

const tracker = new Tracker({
  projectID: PROJECT_ID,
});
tracker.use(trackerCSSRules());
tracker.start();
1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago