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 7, 2023
1 parent 14cbf57 commit 92c76eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { sync } from 'vuex-router-sync'
/** Global directives */
import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'

__webpack_public_path__ = OC.linkTo('collectives', 'js/') // eslint-disable-line

// Register global directives
Vue.directive('Tooltip', VTooltip)

Expand Down

0 comments on commit 92c76eb

Please sign in to comment.