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 <[email protected]>
  • Loading branch information
mejo- committed Aug 9, 2023
1 parent 6bf4c16 commit 62f82f3
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 62f82f3

Please sign in to comment.