summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-30 18:07:25 +0200
committerGitHub <noreply@github.com>2022-08-30 18:07:25 +0200
commit753e88793e0525cadd8a544e3f4093cc3cf7b331 (patch)
treef544b21061e5469899f728bd9fa417a801a2d3b8 /webpack.config.js
parent39ac02c03464c4cdb511d34c0232120d99dde936 (diff)
Port admin settings to vue (#1880)
* Port admin settings to vue Co-authored-by: anoy. <anoymouserver@users.noreply.github.com> Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 000000000..c329f79d1
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: Carl Schwan <carl@carlschwan.eu>
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+const path = require('path')
+const webpackConfig = require('@nextcloud/webpack-vue-config')
+
+webpackConfig.entry = {
+ 'admin-settings': path.join(__dirname, 'src', 'main-admin.js'),
+}
+webpackConfig.output.path = path.resolve('./js/build/')
+webpackConfig.output.publicPath = path.join('/apps/', process.env.npm_package_name, '/js/build/')
+
+module.exports = webpackConfig