Skip to content

Commit

Permalink
Merge pull request #819 from nextcloud/fix/webpack_public_path
Browse files Browse the repository at this point in the history
fix(webpack): set `__webpack_public_path__`
  • Loading branch information
mejo- authored Aug 9, 2023
2 parents 6bf4c16 + de0ba31 commit 62ced0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ import axios from '@nextcloud/axios'
const url = Cypress.config('baseUrl').replace(/\/index.php\/?$/g, '')
Cypress.env('baseUrl', url)

/**
* Ignore ResizeObserver loop limit exceeded' exceptions from browser
* See https://stackoverflow.com/q/49384120 for details
*/
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/
Cypress.on('uncaught:exception', (err) => {
/* returning false here prevents Cypress from failing the test */
if (resizeObserverLoopErrRe.test(err.message)) {
return false
}
})

/**
* Login a user to Nextcloud and visit a given route
*/
Expand Down
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 62ced0c

Please sign in to comment.