zulip/templates
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
..
analytics CSS: Move portico styles to webpack compilation. 2018-04-27 09:04:50 -07:00
confirmation Fix styling for confirmation error links. 2018-02-28 12:50:58 -08:00
corporate Fix various typos. 2017-11-09 16:26:38 +01:00
tests jinja2: Use function interface for render_markdown_path. 2017-07-31 14:54:54 -07:00
zerver CSS: Move portico styles to webpack compilation. 2018-04-27 09:04:50 -07:00
zilencer templates: Fix duplicate inclusion of portico CSS. 2018-04-24 08:45:31 -07:00
.gitignore
404.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00
500.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00