Skip to content

Commit 145bbd2

Browse files
committed
fix: double livereload refresh on assets changing
1 parent eb7a28e commit 145bbd2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

front/assets/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const buildOptions = {
8383

8484
if (watch) {
8585
esbuild.context(buildOptions).then(async context => {
86-
context.watch()
86+
await context.watch()
8787
await copyAssets()
8888

8989
const chokidar = require('chokidar')

front/config/dev.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ config :front, FrontWeb.Endpoint,
1919
~r{priv/static/assets/.*(js|css)$},
2020
~r{priv/static/assets/.*(png|jpeg|jpg|gif|svg)$},
2121
~r{lib/front_web/views/.*(ex)$},
22-
~r{lib/front_web/templates/.*(eex)$},
23-
~r{assets/js/.*(ts|tsx|js)$}
22+
~r{lib/front_web/templates/.*(eex)$}
2423
],
2524
web_console_logger: true
2625
]

0 commit comments

Comments
 (0)