Simplify the setup structure

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-04-01 13:26:54 +02:00
parent 38fe83be1a
commit 467029bf89
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
4 changed files with 141 additions and 11319 deletions

11440
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,7 +50,6 @@
"vue-loader": "^15.9.6",
"vue-template-compiler": "^2.6.12",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0",
"webpack-merge": "^5.7.3"
"webpack-cli": "^4.6.0"
}
}

View File

@ -24,8 +24,7 @@ import AdminSettings from './AdminSettings.vue'
Vue.prototype.t = t
Vue.prototype.OC = OC
const app = new Vue({
export const app = new Vue({
el: '#registration_settings_form',
render: h => h(AdminSettings),
}).$mount('#registration_settings_form')
export { app }
})

View File

@ -1,12 +1,8 @@
const path = require('path')
const { merge } = require('webpack-merge')
const webpackConfig = require('@nextcloud/webpack-vue-config')
webpackConfig.entry = {}
const config = {
entry: {
webpackConfig.entry = {
settings: path.join(__dirname, 'src', 'settings'),
},
}
module.exports = merge(config, webpackConfig)
module.exports = webpackConfig