css/webpack: Moved archive styles to webpack bundle.

This commit moves the stylesheets under the archive bundle in
the Django pipeline to being compiled by webpack instead. It
also removes a remaining call to a portico stylesheet that no
longer exists.
This commit is contained in:
Armaan Ahluwalia
2018-05-04 04:05:35 +05:30
committed by Tim Abbott
parent 54bf2a6231
commit cca10beb78
4 changed files with 7 additions and 11 deletions

View File

@@ -15,8 +15,7 @@
{{ render_bundle('translations', attrs='nonce="%s"' % (csp_nonce)) }}
{{ render_bundle('katex', attrs='nonce="%s"' % (csp_nonce)) }}
{{ render_bundle('portico') }}
{% stylesheet 'portico' %}
{% stylesheet 'archive_css' %}
{{ render_bundle('archive-styles') }}
{% endblock %}

View File

@@ -79,5 +79,11 @@
"./static/styles/typing_notifications.scss",
"./static/styles/hotspots.scss",
"./static/styles/night_mode.scss"
],
"archive-styles": [
"./node_modules/katex/dist/katex.css",
"./static/styles/zulip.scss",
"./static/styles/media.scss",
"./static/styles/archive.scss"
]
}

View File

@@ -876,15 +876,6 @@ PIPELINE = {
),
'output_filename': 'min/twitter_sprite.css',
},
'archive_css': {
'source_filenames': (
'node_modules/katex/dist/katex.css',
'styles/zulip.css',
'styles/media.css',
'styles/archive.css',
),
'output_filename': 'min/archive_css.css',
},
},
'JAVASCRIPT': {},
}