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

Send unminified custom Prebid.js

Open sinuhepop opened this issue 8 years ago • 3 comments

Type of issue

Feature request

Description

If I recall correctly, some time ago when a custom js was sent from download page content was not minified. I think it could be interesting to do it again for some reasons:

  • I have one strange error due to "double minimization". I minimize my resources using another tool and it seems that something is working incorrectly. Minimized file fails, but unminimized works. I had a similar experiencie years ago with another minified resource.
  • Sometimes it's useful to debug code
  • The effort for building an unminified file is not trivial

For all this, I think it could be interesting to receive both files (original and minified) in sent zip. Or at least, a checkbox to select which version.

sinuhepop avatar Apr 12 '18 19:04 sinuhepop

The effort for building an unminified file is not trivial

Hopefully this should be pretty trivial; if not, it may be a failing of documentation. You can use the gulp build-bundle-dev command which doesn't seem to be mentioned in the README.md.

e.g.

git clone [email protected]:prebid/Prebid.js.git
cd Prebid.js
npm install
gulp build-bundle-dev --modules=rubiconBidAdapter,appnexusBidAdapter

As for how the download page acted in the past, that's probably a question for @mkendall07

snapwich avatar Apr 12 '18 21:04 snapwich

Yes, it's what I did. It's pretty trivial if you are working under a Node.js ecosystem ;)

sinuhepop avatar Apr 16 '18 15:04 sinuhepop

cool. I don't remember ever sending unminified source. if it did it was a bug :) going to close this - might consider it in the future when re-build the download page but not going to commit for now.

mkendall07 avatar Apr 16 '18 15:04 mkendall07