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 e993dee commit 83d1e4a
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 83d1e4a

Please sign in to comment.