New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin Enhancement: options() hook #621
Comments
Why not |
Great idea, we actually considered this but ended up pursuing the proposal above as more explicit (and therefore easier to document). But, I agree that Both of these ideas can coexist as well: |
Would love any help on 1 (adding the options hook, as an explicit place to make changes to the config object). That shouldn't be blocked by the discussion on how we read from options in the future. |
I would like to do it. What is the purpose of |
The
As I write this out, we may want to name it |
In our current plugin system, Snowpack is responsible for loading each plugin. We'd like to move to a format closer to Rollup, where you load a plugin yourself in your config file, and then pass the result directly to Snowpack (instead of Snowpack doing the loading for you). Letting you load and initialize your plugins directly gives you more control over them.
Proposal
Implementation Stages
Would love any help on 1 (adding the options hook, as an explicit place to make changes to the config object). That shouldn't be blocked by the discussion on how we read from options in the future.
The text was updated successfully, but these errors were encountered: