Skip to content

Commit d709d09

Browse files
committed
Import bundle directly
1 parent c9d0718 commit d709d09

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ COPY demo/lib lib/
6363

6464
COPY assets ../assets/
6565
COPY package.json ../
66+
COPY priv/static/js ../priv/static/js/
6667

6768
RUN mix assets.deploy
6869

demo/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Sentry from '@sentry/browser'
33
import topbar from 'topbar'
44
import { Socket } from 'phoenix'
55
import { LiveSocket } from 'phoenix_live_view'
6-
import { Hooks as BackpexHooks } from 'backpex'
6+
import { Hooks as BackpexHooks } from '../../../priv/static/js/backpex.esm.js'
77

88
/**
99
* Sentry

demo/config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ config :esbuild,
4646
version: "0.25.8",
4747
default: [
4848
args:
49-
~w(assets/js/app.js --bundle --target=es2017 --outdir=priv/static/assets --external:/fonts/* --external:/images/* --alias:backpex=/opt/app),
49+
~w(assets/js/app.js --bundle --target=es2017 --outdir=priv/static/assets --external:/fonts/* --external:/images/*),
5050
cd: Path.expand("..", __DIR__),
5151
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
5252
]

0 commit comments

Comments
 (0)