Fish Trophy

chipx86 got a fish trophy!

Fish Trophy

Add the ability to remove source media files when building extensions.

Review Request #5775 — Created May 6, 2014 and submitted — Latest diff uploaded

Information

Djblets
master
862e3ad...

Reviewers

When packaging extensions, it's now possible to strip away all source
media files (non-minified JavaScript/CSS/LessCSS files) from the
resulting package. These are generally not needed, and doing so can
reduce the size of the package.

There's a remove-source-files option that can be set in setup.cfg that
will cause all JavaScript/CSS/LessCSS source files to be removed from
the build. This can be set by adding the following to setup.cfg:

[build_static_files]
remove_source_files = 1

Made use of this in an extension. With the setting set, I saw that the
package and build directory contained only the bundle files (stamped and
unstamped), and not the source files or minified source files.