Skip to content

Commit

Permalink
assets: copy manifest.json to fix webpack error
Browse files Browse the repository at this point in the history
* Copies the `manifest.json` to ${INVENIO_INSTANCE_PATH}/static/dist, something changed in `invenio-assets` and this file is missing.

Co-Authored-by: Sébastien Délèze <[email protected]>
Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
Sébastien Délèze and rerowep committed May 17, 2021
1 parent aa2b529 commit bdbba6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ cp -R ${assets_folder}/node_modules/@rero/sonar-ui/dist/sonar/* ${static_folder}
# Copy worker from pdfjs to avoid a 404 error when previewing PDF files.
cp ${assets_folder}/node_modules/pdfjs-dist/build/pdf.worker.min.js ${static_folder}/js/pdfjs/

# TODO: Fix for invenio-assets not copying manifest.json to
# ${INVENIO_INSTANCE_PATH}/static/dist
cp ${static_folder}/../assets/manifest.json ${static_folder}/dist/manifest.json

# Compile JSON schemas
section "Compile JSON schemas" "info"
invenio utils compile-json ./sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json -o ./sonar/modules/documents/jsonschemas/documents/document-v1.0.0.json
Expand Down

0 comments on commit bdbba6b

Please sign in to comment.