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() { ... }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.00

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