@mudlabs/mudlify-snowpack-plugin

Plugin for Mudlify Snowpack apps

Usage no npm install needed!

<script type="module">
  import mudlabsMudlifySnowpackPlugin from 'https://cdn.skypack.dev/@mudlabs/mudlify-snowpack-plugin';
</script>

README

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: {...}
    };