Skip to content

Commit

Permalink
fix(webpack): set __webpack_public_path__
Browse files Browse the repository at this point in the history
Required for loading webpack chunks if the app is in a non-default apps
folder (like `apps-extra/`).

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Aug 8, 2023
1 parent 519d30d commit 5cd3972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5cd3972

Please sign in to comment.