This package has been deprecated

Author message:

This package is no longer under the development. Please, use @openreplay/tracker, which maintains CSS-rules out of the box.

@asayerio/tracker-cssrules

1.2.2 • Public • Published

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();

Package Sidebar

Install

npm i @asayerio/tracker-cssrules

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

4.74 kB

Total Files

5

Last publish

Collaborators

  • estradino