mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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.
|
||||
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
|
||||
|
Reference in New Issue
Block a user