chore(webpack): Move to shared code for entrypoints and use webpack serve public path

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-05-17 09:49:22 +02:00
parent 9f753e4395
commit d096208f58
8 changed files with 28 additions and 22 deletions

View File

@@ -22,12 +22,9 @@
import './css/dashboard.scss'
const debug = process.env.NODE_ENV !== 'production'
import './shared-init.js'
// eslint-disable-next-line
__webpack_nonce__ = btoa(OC.requestToken);
// eslint-disable-next-line
__webpack_public_path__ = OC.linkTo('deck', 'js/');
const debug = process.env.NODE_ENV !== 'production'
document.addEventListener('DOMContentLoaded', () => {
OCA.Dashboard.register('deck', async (el) => {