From 2e7cbc5e1b5caed31cef9fc39c3dbc838478e03a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 11 Feb 2019 19:41:00 +0100 Subject: Move oauth2 to global webpack config Signed-off-by: Roeland Jago Douma --- apps/oauth2/webpack.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 apps/oauth2/webpack.js (limited to 'apps/oauth2/webpack.js') 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'] + } +} -- cgit v1.2.3