-
-
-
djblets/extensions/packaging.py (Diff revision 1) Can we rename
build_dir
in this method to something more specific, likemedia_build_dir
? I initially panicked when reading this.
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: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+46) |
Change Summary:
Some code snuck in that I thought I had
git reset --hard
'ed away.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+42) |