Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Add-on support

Open protonate opened this issue 10 years ago • 3 comments

Type of issue

Feature Request

Description

Members of the Prebid Developer Community may have utility scripts they wish to share with the project. An "Add-on" feature would provide a means of incorporating this code. An example of this surfaced in #496 with debug tools from @cwbeck and @brondsem.

While useful for developer builds, publisher production builds can also benefit from the choice to add optional features or keep the file size down.

Expected results

An "add-on" script can be placed in a ./addons/ directory and then be incorporated into the build through a simple standardized API. This then provides the "add-on" functionality as an optional feature in the build. Configuration can be kept in an addons.json file at project root. Config could also be available through feature flags passed to gulp build.

Other information

See discussion of "render.js" in Issue #496. See this gist: https://gist.github.com/cwbeck/bdea9f22ceed8af489fb047f357f77cc

protonate avatar Oct 18 '16 23:10 protonate

+1.

Why limit it to debug though? We could add additional functionality too right?

mkendall07 avatar Oct 18 '16 23:10 mkendall07

Yup, we could open this up for optional features in production builds and provide publishers with the choice of adding a feature or keeping the file size down. I'll update description.

protonate avatar Oct 19 '16 00:10 protonate

this will be address with prebid 1.0 modules.

mkendall07 avatar May 17 '17 17:05 mkendall07