enable sending gzipped versions of static assets

This commit is contained in:
Adam Piontek 2021-03-27 08:09:02 -04:00
parent 2fe6f4c174
commit d493a0dcdb

View file

@ -44,7 +44,7 @@ defmodule Shift73kWeb.Endpoint do
plug(Plug.Static, plug(Plug.Static,
at: "/", at: "/",
from: :shift73k, from: :shift73k,
gzip: false, gzip: true,
only: ~w(css fonts images js) ++ static_files only: ~w(css fonts images js) ++ static_files
) )