Neolithic Populous Metropolis

    @asayerio/tracker-cssrules
    TypeScript icon, indicating that this package has built-in type declarations

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

    Install

    npm i @asayerio/tracker-cssrules

    DownloadsWeekly Downloads

    73

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    4.74 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar