Skip to content

Commit 3d6d01a

Browse files
committed
Import backpex instead of module
1 parent d709d09 commit 3d6d01a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ RUN mix do deps.compile
5656
COPY demo/priv priv/
5757
COPY demo/package.json demo/yarn.lock demo/.stylelintrc.json ./
5858

59+
COPY assets ../assets/
60+
COPY package.json ../
61+
COPY priv/static/js ../priv/static/js/
62+
5963
RUN yarn install --pure-lockfile
6064

6165
COPY demo/assets assets/
6266
COPY demo/lib lib/
6367

64-
COPY assets ../assets/
65-
COPY package.json ../
66-
COPY priv/static/js ../priv/static/js/
67-
6868
RUN mix assets.deploy
6969

7070
# Copy the rest of the application files

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 '../../../priv/static/js/backpex.esm.js'
6+
import { Hooks as BackpexHooks } from 'backpex'
77

88
/**
99
* Sentry

demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"topbar": "3.0.0"
3131
},
3232
"dependencies": {
33+
"backpex": "file:..",
3334
"daisyui": "^5.0.3"
3435
}
3536
}

0 commit comments

Comments
 (0)