Installing a Plugin

Flint’s plugins are based on packages on the NPM registry. To install one:

npm install PLUGIN_NAME

Then, once the plugin has been added to your project, you can include it in your site’s configuration object. In your project’s entry point:

const PLUGIN_NAME = require('PLUGIN_NAME');

const siteSettings = {
  plugins: [ PLUGIN_NAME ],
};

const flintServer = new Flint(siteSettings);

Find a mistake or want to help improve this documentation? Suggest changes on GitHub.