chipx86 got a fish trophy!
Add the ability to remove source media files when building extensions.
Review Request #5775 — Created May 6, 2014 and submitted
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.
- Change Summary:
-
Made a variable name less scary and more specific.
- Commit:
-
688b9e965d08167078f308a49d207bdcb029b69a121dc751d79fcf2ca6e4fb4a414f055c5477b2d4