analytics/config/dev.exs
Artur Pata 039f3baf8e
Add Typescript (#4427)
* Add typescript, rewrite Countries map

* Add back DB IP geolocation notice

* Silence all current eslint warnings: to be removed gradually

* Reconfigure eslint import plugin for typescript

* Insert formatting pragma by default, but ignore files without pragma in CI
2024-08-13 11:39:35 +03:00

30 lines
784 B
Elixir

import Config
config :plausible, PlausibleWeb.Endpoint,
server: true,
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
npm: ["--prefix", "assets", "run", "typecheck", "--", "--watch"],
npm: [
"run",
"deploy",
cd: Path.expand("../tracker", __DIR__)
]
],
live_reload: [
dirs: [
"extra"
],
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r"lib/plausible_web/(controllers|live|components|templates|views|plugs)/.*(ex|heex)$"
]
]
config :phoenix, :stacktrace_depth, 20
config :phoenix, :plug_init_mode, :runtime