summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/webpack.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-20 15:24:04 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-20 15:24:04 +0100
commitf5449a021aae1fdd1fd71729493f4aac529f1c6f (patch)
treee53f7a8d69b7a2bb4f3a1ddd809e3c7c91685c63 /apps/twofactor_backupcodes/webpack.js
parent0becd88feb63de6ac02b495ad1440d8bd7cdcbd2 (diff)
downloadnextcloud-server-f5449a021aae1fdd1fd71729493f4aac529f1c6f.tar.gz
nextcloud-server-f5449a021aae1fdd1fd71729493f4aac529f1c6f.zip
Move twofactor_backupcodes to main webpack bundle
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/webpack.js')
-rw-r--r--apps/twofactor_backupcodes/webpack.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/webpack.js b/apps/twofactor_backupcodes/webpack.js
new file mode 100644
index 00000000000..bd25bf2bbde
--- /dev/null
+++ b/apps/twofactor_backupcodes/webpack.js
@@ -0,0 +1,46 @@
+const path = require('path');
+const { VueLoaderPlugin } = require('vue-loader');
+
+module.exports = {
+ entry: path.join(__dirname, 'src', 'settings.js'),
+ output: {
+ path: path.resolve(__dirname, 'js'),
+ publicPath: '/js',
+ filename: 'settings.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.css$/,
+ use: ['vue-style-loader', 'css-loader']
+ },
+ {
+ test: /\.scss$/,
+ use: ['vue-style-loader', 'css-loader', 'sass-loader']
+ },
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader'
+ },
+ {
+ test: /\.js$/,
+ loader: 'babel-loader',
+ exclude: /node_modules/
+ },
+ {
+ test: /\.(png|jpg|gif|svg)$/,
+ loader: 'file-loader',
+ options: {
+ name: '[name].[ext]?[hash]'
+ }
+ }
+ ]
+ },
+ plugins: [new VueLoaderPlugin()],
+ resolve: {
+ alias: {
+ vue$: 'vue/dist/vue.esm.js',
+ },
+ extensions: ['*', '.js', '.vue', '.json']
+ }
+};