update-prod-static: Don't ship node_modules.

This saves more than 50MB of unnecessary duplicate content in release
tarballs (the static assets that will actually be served have already
been built at this point by tools/minify-js).
This commit is contained in:
Tim Abbott
2017-02-06 16:30:02 -08:00
parent babb6aaa47
commit d71f2e7b9b

View File

@@ -44,7 +44,7 @@ subprocess.check_call(['./tools/minify-js'] +
# Collect the files that we're going to serve; this creates prod-static/serve.
subprocess.check_call(['./manage.py', 'collectstatic', '--no-default-ignore',
'--noinput', '-i', 'assets'],
'--noinput', '-i', 'assets', '-i' 'node_modules'],
stdout=fp, stderr=fp)
if not settings.PRODUCTION:
# When building a release tarball, we need to move staticfiles.json