JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q70991F

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@htmelt/plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @htmelt/unocss

    UnoCSS plugin for HTMelt.

    How It Works

    1. It loads your unocss.config.js file.
    2. It scans your JSX and TSX files for tokens identified by UnoCSS plugins/presets.
    3. For each JSX and TSX module, it generates a separate CSS file and adds it to the document with JavaScript.

    Roadmap

    • Use lightningcss to remove duplicate CSS rules on a per-chunk basis.

    Install

    pnpm install -D @htmelt/unocss
    yarn add -D @htmelt/unocss
    npm install --save-dev @htmelt/unocss