fabric-fastify-podlet-plugin

1.0.1 • Public • Published

Fabric Fasitfy Podlet Plugin

This plugin is intended for use with @podium/experimental-fastify-podlet-server This hooks into Esbuild and replaces @fabric-css placeholders in content or fallback files with inlined, purged fabric CSS.

How to use

Install

npm install fabric-fastify-podlet-plugin

Import

// build.js
import fabricPlugin from 'fabric-fastify-podlet-plugin'

Register

// build.js
import fabricPlugin from 'fabric-fastify-podlet-plugin';
export default () => [fabricPlugin()];

Add placeholder

// content.js
import { html, css } from "lit";
import { PodiumPodletElement } from "@podium/experimental-lit-base-class";

export default class Content extends PodiumPodletElement {
    static styles = css`
        @fabric-css
    `;
    render() { ... }
}

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fabric-fastify-podlet-plugin

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    4.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • digitalsadhu