zulip/zproject
Armaan Ahluwalia 93ac40105f CSS: Move portico styles to webpack compilation.
static/styles/scss/portico.scss is now compiled by webpack
and supports SCSS syntax.

Changed the server-side templates to render the portico-styles
bundle instead of directly requiring the portico stylesheet. This
allows webpack to handle stylesheet compilation and minification.

We use the mini-css-extract-plugin to extract out css from the
includes in webpack and let webpacks production mode handle
minification. Currently we're not able to use it for dev mode
because it does not support HMR so we use style-loader instead.
Once the plugin supports HMR we can go on to use it for both
dev and prod.

The downside of this is that when reloading pages in the development
environment, there's an annoying flash of unstyled content :(.

It is now possible to make a change in any of the styles included
by static/styles/scss/portico.scss and see the code reload live
in the browser. This is because style-loader which we currently
use has the module.accept code built-in.
2018-04-27 09:04:50 -07:00
..
jinja2 csp_nonce: Add nonce to script tags loading minified JS. 2018-04-24 06:13:21 +05:30
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py test_auth_backends: Add a test for GitHub auth mobile_flow_otp. 2018-04-22 19:55:05 -07:00
dev_settings.py bots: Eliminate NEW_USER_BOT. 2018-03-29 12:01:21 -07:00
dev_urls.py test_emails: Generate emails instead of hardcoding. 2017-09-26 15:02:47 -07:00
email_backends.py zproject: Use Python 3 syntax for typing. 2017-11-27 17:01:18 -08:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py settings: Add a few more section headings. 2018-04-05 21:24:48 -07:00
settings.py CSS: Move portico styles to webpack compilation. 2018-04-27 09:04:50 -07:00
slack_importer_test_settings.py slack importer: Use standalone database for running tests. 2018-01-07 09:50:27 -05:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py tests: Add test coverage for uploading avatars to S3UploadBackend. 2017-12-26 09:09:31 -05:00
urls.py avatars: Fix 500 with the /avatar/ URL to be a 404. 2018-04-18 12:43:57 -07:00
wsgi.py python: Add lint rule banning 'from os.path import'. 2017-09-22 04:55:38 -07:00