Skip to content
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

Added function support on plugins registration #94

Closed
wants to merge 1 commit into from

Conversation

jorgecuesta
Copy link
Contributor

Hi I add function support on registrations: [{plugin: require('./my-awesome-plugin.js')}] because some times to use things like server rendering is needed that webpack or something like that parse imports/require it self.
Also let people do it with his own require/import logic.

@csrl
Copy link
Contributor

csrl commented Apr 5, 2017

This is for issue #89

server.start(() => {

console.log('hapi days!');
plugin = require('./awesome-plugin.js');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coding style does not conform to https://github.com/hapijs/contrib/blob/master/Style.md

@@ -1,7 +1,7 @@
{
"name": "glue",
"description": "Server composer for hapi.js",
"version": "4.1.0",
"version": "4.1.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't change the version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@csrl I will revert does changes and make a new pull request. I will let you know about this tonight.

@jorgecuesta jorgecuesta closed this Apr 5, 2017
@berzniz
Copy link

berzniz commented Aug 27, 2017

I would love to see this change merged? Is it still in the works?

@csrl
Copy link
Contributor

csrl commented Aug 28, 2017

It was implemented in #95 and released in v4.2

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants