Skip to content

Commit

Permalink
DMED-119 - fix handling of web component files
Browse files Browse the repository at this point in the history
  • Loading branch information
bergatco committed Sep 5, 2024
1 parent eb3c683 commit 2da05f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ ARG SC_THEME=default
ENV SC_THEME ${SC_THEME}
RUN NODE_ENV=production npm run build

# we need to copy the public/content folder after the build step, because the build step will add the web component files to the public folder
COPY public/content ./public/content

COPY .git ./.git
RUN echo "{\"sha\": \"$(git rev-parse HEAD)\", \"version\": \"$(git describe --tags --abbrev=0)\", \"commitDate\": \"$(git log -1 --format=%cd --date=format:'%Y-%m-%dT%H:%M:%SZ')\", \"birthdate\": \"$(date +%Y-%m-%dT%H:%M:%SZ)\"}" > ./dist/nuxtversion

Expand Down
3 changes: 2 additions & 1 deletion config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ module.exports = {
"**/.DS_Store",
path.resolve(__base, "public/index.html"),
path.resolve(__base, "public/themes/**/*"),
path.resolve(__base, "public/content/**/*"),
],
},
info: {
Expand All @@ -107,7 +108,7 @@ module.exports = {
__base,
"node_modules/ngx-edu-sharing-app-as-web-component"
),
to: path.resolve(__base, "public/content/vendor/edu-sharing"),
to: path.resolve(__base, "dist/content/vendor/edu-sharing"),
},
],
}),
Expand Down

0 comments on commit 2da05f3

Please sign in to comment.