Skip to content
Jason Miller edited this page Jul 11, 2017 · 18 revisions

Using Plugins

To make customizing your configuration easier, preact-cli supports plugins. Plugins are essentially preact.config.js files that are published to npm as modules that you can install. Here's the process:

  1. Install it: npm install --save-dev preact-cli-foo

  2. Invoke it from your preact.config.js:

    import foo from 'preact-cli-foo';
    export default (config, helpers) => {
      config = foo(config, helpers);
      return config;
    };

List of Plugins

Clone this wiki locally