@mudlabs/mudlify-snowpack-plugin

0.5.0 • Public • Published

mudlify-snowpack-plugin

A Plugin for Snowpack Mudlify apps. The plugin transforms the contents of files so that any placeholder tags are populated with the files corrisponding Netlify CMS data.

See the Mudlify docs to learn how to configure the tags -> cms data relationships.

Usage

  1. Add the package to your Snowpack app devDependencies.

    pnpm install -D @mudlabs/mudlify-snowpack-plugin
  2. Specify the plugin in snowpack.config.js.

    • Be sure to point the config path to your mudlify.yaml file.
    module.exports = {
      mount: {...},
      plugins: [
        [
          "@mudlabs/mudlify-snowpack-plugin",
          { config: "mudlify.yaml" }
        ]
      ],
      installOptions: {...},
      devOptions: {...},
      buildOptions: {...}
    };

Package Sidebar

Install

npm i @mudlabs/mudlify-snowpack-plugin

Weekly Downloads

11

Version

0.5.0

License

MIT

Unpacked Size

12.1 kB

Total Files

4

Last publish

Collaborators

  • mudlabs