update-prod-static: Don't copy/minify templates and styles.

This is a performance optimization: Rather than copying these files
into the `prod-static` directory and then deleting them, we just don't
copy them over in the first place.

For styles, it might have once been the case that this did something,
but we've moved them all to being managed by webpack some time ago.

For the js directory, I think it was never useful to copy and then
delete them; these files were always compiled via tools/minify-js,
and the raw JS files weren't needed, anyway.
This commit is contained in:
Tim Abbott
2018-05-31 16:56:16 -07:00
parent cefdf6f6d4
commit 751c602a0b
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ for css_file in CSS_FILES:
# Collect the files that we're going to serve; this creates prod-static/serve.
run(['./manage.py', 'collectstatic', '--no-default-ignore',
'--noinput', '-i', 'assets', '-i' 'node_modules'],
'--noinput', '-i', 'assets', '-i' 'node_modules', '-i', 'styles', '-i', 'templates'],
stdout=fp, stderr=fp)
if not settings.PRODUCTION: