From 211cb2dd6073f09127b8470ebb666f01e150c79f Mon Sep 17 00:00:00 2001 From: Marlus Saraiva Date: Wed, 18 Sep 2024 16:18:27 -0300 Subject: [PATCH] Enable surface compiler with :generate_assets set to false --- config/config.exs | 2 ++ mix.exs | 1 + mix.lock | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index a962e37..7789e28 100644 --- a/config/config.exs +++ b/config/config.exs @@ -17,4 +17,6 @@ if Mix.env() == :dev do config :surface_catalogue, Surface.Catalogue.Server.Endpoint, code_reloader: true, debug_errors: true + + config :surface, :compiler, generate_assets: false end diff --git a/mix.exs b/mix.exs index c68368e..ef8923a 100644 --- a/mix.exs +++ b/mix.exs @@ -22,6 +22,7 @@ defmodule Surface.Form.MixProject do description: "Wrappers for Phoenix.HTML.Form functions", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), + compilers: Mix.compilers() ++ [:surface], aliases: aliases(), deps: deps(), preferred_cli_env: [docs: :docs], diff --git a/mix.lock b/mix.lock index d5bf06c..b8f3d92 100644 --- a/mix.lock +++ b/mix.lock @@ -31,7 +31,7 @@ "plug_crypto": {:hex, :plug_crypto, "2.1.0", "f44309c2b06d249c27c8d3f65cfe08158ade08418cf540fd4f72d4d6863abb7b", [:mix], [], "hexpm", "131216a4b030b8f8ce0f26038bc4421ae60e4bb95c5cf5395e1421437824c4fa"}, "ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, "sourceror": {:hex, :sourceror, "1.0.3", "111711c147f4f1414c07a67b45ad0064a7a41569037355407eda635649507f1d", [:mix], [], "hexpm", "56c21ef146c00b51bc3bb78d1f047cb732d193256a7c4ba91eaf828d3ae826af"}, - "surface": {:git, "https://github.com/surface-ui/surface.git", "1f105ed5e00cfa58ff4f84bfa7f32256e5b728c4", []}, + "surface": {:git, "https://github.com/surface-ui/surface.git", "b1318ecba7af0a026e331f3c652d6da098028dcb", []}, "surface_catalogue": {:git, "https://github.com/surface-ui/surface_catalogue.git", "c3b79034a0d4a5b7378f1e9d510debd29e555f45", []}, "telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"}, "websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"},