Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

Plugin system #10

Closed
egoist opened this issue Apr 12, 2020 · 0 comments
Closed

Plugin system #10

egoist opened this issue Apr 12, 2020 · 0 comments

Comments

@egoist
Copy link
Collaborator

egoist commented Apr 12, 2020

should be flexible enough so we can use it to build another framework, for example a gatsby-like static site generator

Plugin folder structure:

- my-plugin/
  index.js
  enhance-app.js
  enhance-server.js

Use a plugin in config file:

// ream-config.js

module.exports = {
  plugins: [
    ['./plugins/my-plugin', {/* options */}],
    ['ream-plugin-foo', {}],
    '@ream/plugin-bar'
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant