Simplify the setup structure
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
38fe83be1a
commit
467029bf89
File diff suppressed because it is too large
Load Diff
|
|
@ -50,7 +50,6 @@
|
||||||
"vue-loader": "^15.9.6",
|
"vue-loader": "^15.9.6",
|
||||||
"vue-template-compiler": "^2.6.12",
|
"vue-template-compiler": "^2.6.12",
|
||||||
"webpack": "^5.28.0",
|
"webpack": "^5.28.0",
|
||||||
"webpack-cli": "^4.6.0",
|
"webpack-cli": "^4.6.0"
|
||||||
"webpack-merge": "^5.7.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ import AdminSettings from './AdminSettings.vue'
|
||||||
Vue.prototype.t = t
|
Vue.prototype.t = t
|
||||||
Vue.prototype.OC = OC
|
Vue.prototype.OC = OC
|
||||||
|
|
||||||
const app = new Vue({
|
export const app = new Vue({
|
||||||
|
el: '#registration_settings_form',
|
||||||
render: h => h(AdminSettings),
|
render: h => h(AdminSettings),
|
||||||
}).$mount('#registration_settings_form')
|
})
|
||||||
|
|
||||||
export { app }
|
|
||||||
|
|
|
||||||
10
webpack.js
10
webpack.js
|
|
@ -1,12 +1,8 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { merge } = require('webpack-merge')
|
|
||||||
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
||||||
|
|
||||||
webpackConfig.entry = {}
|
webpackConfig.entry = {
|
||||||
const config = {
|
settings: path.join(__dirname, 'src', 'settings'),
|
||||||
entry: {
|
|
||||||
settings: path.join(__dirname, 'src', 'settings'),
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = merge(config, webpackConfig)
|
module.exports = webpackConfig
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue