npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@genexus/vite-plugin-mercury

v1.2.0

Published

Vite plugin for Mercury Design System

Readme

Mercury brand Vite plugin for the Mercury Design System

The @genexus/vite-plugin-mercury package serves the same purpose as the Mercury CLI (@genexus/mercury-cli package), allows to build and use the Mercury Design System.

Usage example in the vite.config.ts file:

import { mercury } from "@genexus/vite-plugin-mercury";
import { defineConfig, type PluginOption } from "vite";

export default defineConfig({
  plugins: [
    mercury({
      // Options...
    }) as PluginOption,
  ],
});

⚙️ Options

The vite-plugin-mercury accepts an options object of type MercuryOptions to customize its behavior:

export type MercuryOptions = {
  /**
   * An object to customize the location of the Mercury assets (CSS, font, and
   * icon files) in the distribution build.
   *
   * In dev mode these files are proxied to the real source.
   */
  assetsPaths?: MercuryOptionsAssets;

  /**
   * Customize which files are not hashed.
   *
   * **IMPORTANT!**: Use this field if you know what you are doing. Not hashing
   * the CSS files could lead to cache issues when changing the version of
   * Mercury.
   *
   * By default, all CSS bundle files are hashed to avoid any cache issue.
   */
  avoidHash?: {
    [key in
      | MercuryBundleBase
      | MercuryBundleReset
      | MercuryBundleOptimized]?: boolean;
  };

  /**
   * Determine which CSS files will be inserted at the end of html `head` as a
   * `style` tag. In some cases, this may improve initial load performance; for
   * example, inlining the `base/base` bundle.
   *
   * **Warning**: Abusing of this setting could lead to diminishing returns.
   *
   * Due to the previous point, this setting does not allow inlining the
   * `base/icons` CSS bundle, as it is a relatively big file that could bloat the
   * initial HTML size.
   *
   * By default, the `base/base` and `resets/box-sizing` CSS bundles are inlined.
   */
  cssInline?: {
    [key in
      | Exclude<MercuryBundleBase, "base/icons">
      | MercuryBundleReset
      | MercuryBundleOptimized]?: boolean;
  };

  /**
   * Determine which CSS files will be preloaded as a `<link>` tag.
   * In some cases, this may improve initial load performance.
   *
   * When using `true` the default config will be `{ position: "head", fetchPriority: "auto" }`
   *
   * **Warning**: Abusing of this setting could lead to diminishing returns.
   *
   * By default, the `"base/icons"` CSS bundle is preloaded at the `"body-end"`
   * position with `fetchPriority: "low"`.
   */
  cssPreload?: {
    [key in
      | MercuryBundleBase
      | MercuryBundleReset
      | MercuryBundleOptimized]?: MercuryOptionsAssetPreload;
  };

  /**
   * Allows overriding specific design tokens used by Mercury.
   *
   * All tokens can be overridden (primitives and semantics), but it's
   * recommended to only override those that are necessary to achieve the
   * desired customization.
   */
  overrides?: {
    tokens?: MercuryTokensDefinition;
  };

  /**
   * The theme variant in which Mercury is implemented.
   *
   * @default "mercury"
   */
  theme?: "mercury" | "globant";
};

export type MercuryOptionsAssets = {
  /**
   * Path where the CSS files of Mercury are located in the distribution build.
   *
   * @default "/assets/css/"
   */
  cssPath?: string;

  /**
   * Path where the font files of Mercury are located in the distribution build.
   *
   * @default "/assets/fonts/"
   */
  fontsPath?: string;

  /**
   * Path where the icon files of Mercury are located in the distribution build.
   *
   * @default "/assets/icons/"
   */
  iconsPath?: string;
};

export type MercuryOptionsAssetPreload =
  | boolean
  | {
      /**
       * The position where the link is placed.
       * - `"head"`: Places the `<link>` at the end of the html `head`.
       * - `"body-start"`: Places the `<link>` at the start of the html `body`.
       * - `"body-end"`: Places the `<link>` at the end of the html `body`.
       *
       * @default "head"
       */
      position?: "head" | "body-start" | "body-end";

      /**
       * Represents a hint to the browser indicating how it should prioritize
       * fetching a particular resource relative to other resources of the same
       * type.
       *
       * Based on [fetchPriority](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/fetchPriority).
       *
       * @default "auto"
       */
      fetchPriority?: "auto" | "high" | "low";
    };