From bdbba6bd894624fafde3ba40f4c2c3d270b07cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Mon, 17 May 2021 14:00:05 +0200 Subject: [PATCH] assets: copy manifest.json to fix webpack error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-Authored-by: Peter Weber --- scripts/bootstrap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/bootstrap b/scripts/bootstrap index 494c64ba..4aed6a7c 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -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