From 62f82f332a246382c6ff2ab90760670d7101256a Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 7 Aug 2023 17:40:24 +0200 Subject: [PATCH] fix(webpack): set `__webpack_public_path__` Required for loading webpack chunks if the app is in a non-default apps folder (like `apps-extra/`). Signed-off-by: Jonas --- src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.js b/src/main.js index a5c6ed425..9840e5f8a 100644 --- a/src/main.js +++ b/src/main.js @@ -25,10 +25,13 @@ import Collectives from './Collectives.vue' import router from './router.js' import store from './store/store.js' import { sync } from 'vuex-router-sync' +import { generateFilePath } from '@nextcloud/router' /** Global directives */ import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' +__webpack_public_path__ = generateFilePath('collectives', '', 'js/') // eslint-disable-line + // Register global directives Vue.directive('Tooltip', VTooltip)