summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/webpack.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-11 19:41:00 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-13 09:03:12 +0100
commit2e7cbc5e1b5caed31cef9fc39c3dbc838478e03a (patch)
treedd71c3c0619380078ca1289964ba2f95ea737fb5 /apps/oauth2/webpack.js
parent329da5fb992f6a3400fd20f34efb1752f05030e5 (diff)
downloadnextcloud-server-2e7cbc5e1b5caed31cef9fc39c3dbc838478e03a.tar.gz
nextcloud-server-2e7cbc5e1b5caed31cef9fc39c3dbc838478e03a.zip
Move oauth2 to global webpack config
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/oauth2/webpack.js')
-rw-r--r--apps/oauth2/webpack.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/oauth2/webpack.js b/apps/oauth2/webpack.js
new file mode 100644
index 00000000000..5c091f956d8
--- /dev/null
+++ b/apps/oauth2/webpack.js
@@ -0,0 +1,35 @@
+const path = require('path')
+const { VueLoaderPlugin } = require('vue-loader');
+
+module.exports = {
+ entry: path.join(__dirname, 'src', 'main.js'),
+ output: {
+ path: path.resolve(__dirname, './js'),
+ publicPath: '/js',
+ filename: 'oauth2.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader',
+ options: {
+ hotReload: false
+ }
+ },
+ {
+ test: /\.css$/,
+ use: ['vue-style-loader', 'css-loader']
+ },
+ ]
+ },
+ plugins: [
+ new VueLoaderPlugin()
+ ],
+ resolve: {
+ alias: {
+ 'vue$': 'vue/dist/vue.esm.js'
+ },
+ extensions: ['*', '.js', '.vue', '.json']
+ }
+}