Skip to content

Commit

Permalink
Multiple improvements to the frontend code
Browse files Browse the repository at this point in the history
- Add explicit installation of buffer for webpack update
- Ignore `.hugo_build.lock` file which should not be committed.
- Get rid of `openssl-legacy-provider` flag as it is not needed since
d610927
  • Loading branch information
paskal committed Nov 2, 2024
1 parent d610927 commit 052d6c9
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-frontend-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
NODE_OPTIONS: --openssl-legacy-provider
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ RUN npm ci --omit=dev --omit optional
ARG DO_NOT_MINIFY

ENV NODE_ENV=production
# needed only for old webpack version
ENV NODE_OPTIONS=--openssl-legacy-provider

COPY ./hugo/webpack.mix.js ./hugo/tsconfig.json ./hugo/.babelrc.js /app/
COPY ./hugo/src/ /app/src/
Expand Down
1 change: 1 addition & 0 deletions hugo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dev/
golayouts/
.netlify
.direnv/
.hugo_build.lock
55 changes: 45 additions & 10 deletions hugo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hugo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"axios": "^0.28.1",
"axios-extensions": "^3.1.3",
"bootstrap": "^4.6.2",
"buffer": "^6.0.3",
"core-js": "^3.1.4",
"cross-env": "^5.2.0",
"custom-event-polyfill": "^1.0.7",
Expand Down

0 comments on commit 052d6c9

Please sign in to comment.