diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-14 20:09:06 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-19 11:42:41 +0200 |
commit | 1ff3f578980a29aee8d952e4cd7df786e955acd7 (patch) | |
tree | b3380cf8998281e852652256b6b1a18cb80bf0e1 /apps/oauth2/src/webpack.common.js | |
parent | 27259ea2a21cf0227be12bc9bfc2c997bc6ee44f (diff) | |
download | nextcloud-server-1ff3f578980a29aee8d952e4cd7df786e955acd7.tar.gz nextcloud-server-1ff3f578980a29aee8d952e4cd7df786e955acd7.zip |
js-src => src
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/oauth2/src/webpack.common.js')
-rw-r--r-- | apps/oauth2/src/webpack.common.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/oauth2/src/webpack.common.js b/apps/oauth2/src/webpack.common.js new file mode 100644 index 00000000000..72bce3b287d --- /dev/null +++ b/apps/oauth2/src/webpack.common.js @@ -0,0 +1,28 @@ +const path = require('path') +const { VueLoaderPlugin } = require('vue-loader'); + +module.exports = { + entry: path.join(__dirname, 'main.js'), + output: { + path: path.resolve(__dirname, '../js'), + publicPath: '/js', + filename: 'oauth2.js' + }, + module: { + rules: [ + { + test: /\.vue$/, + loader: 'vue-loader', + } + ] + }, + plugins: [ + new VueLoaderPlugin() + ], + resolve: { + alias: { + 'vue$': 'vue/dist/vue.esm.js' + }, + extensions: ['*', '.js', '.vue', '.json'] + } +} |