mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
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:
@@ -44,7 +44,7 @@ subprocess.check_call(['./tools/minify-js'] +
|
|||||||
|
|
||||||
# Collect the files that we're going to serve; this creates prod-static/serve.
|
# Collect the files that we're going to serve; this creates prod-static/serve.
|
||||||
subprocess.check_call(['./manage.py', 'collectstatic', '--no-default-ignore',
|
subprocess.check_call(['./manage.py', 'collectstatic', '--no-default-ignore',
|
||||||
'--noinput', '-i', 'assets'],
|
'--noinput', '-i', 'assets', '-i' 'node_modules'],
|
||||||
stdout=fp, stderr=fp)
|
stdout=fp, stderr=fp)
|
||||||
if not settings.PRODUCTION:
|
if not settings.PRODUCTION:
|
||||||
# When building a release tarball, we need to move staticfiles.json
|
# When building a release tarball, we need to move staticfiles.json
|
||||||
|
|||||||
Reference in New Issue
Block a user