summaryrefslogtreecommitdiffstats
path: root/webpack.js
diff options
context:
space:
mode:
authorDevlin Junker <devlin.junker@gmail.com>2022-11-28 17:04:14 -1000
committerBenjamin Brahmer <info@b-brahmer.de>2022-12-06 14:57:20 +0100
commit83fe713c052ee2ccc419be58eb9e83ba23a95b65 (patch)
treecfac0dbf192a573b08ac1e70064c6c5623da8cf1 /webpack.js
parent604e4e0f1bc8829558dd9b91c94d5776b0ac67be (diff)
split store into multiple files
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'webpack.js')
-rw-r--r--webpack.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/webpack.js b/webpack.js
index 9b6a70a0b..25c295596 100644
--- a/webpack.js
+++ b/webpack.js
@@ -1,4 +1,5 @@
-const webpackConfig = require('@nextcloud/webpack-vue-config')
+const { merge } = require('webpack-merge')
+let webpackConfig = require('@nextcloud/webpack-vue-config')
const path = require('path')
webpackConfig.entry['admin-settings'] = path.join(
@@ -7,6 +8,12 @@ webpackConfig.entry['admin-settings'] = path.join(
'main-admin.js',
)
+webpackConfig = merge(webpackConfig, {
+ resolve: {
+ extensions: ['.ts'],
+ },
+})
+
// Add TS Loader for processing typescript in vue templates
webpackConfig.module.rules.push({
test: /.ts$/,