summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/webpack.common.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-12-14 11:03:09 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-12-14 14:45:41 +0100
commit1a68e211a367d9a657acad3460c72b7663282c05 (patch)
tree8154c2ca45b3d380eaf65ae912ffd35115c03361 /apps/updatenotification/webpack.common.js
parent6e913298724b508ae1fb0653b56f43db067d60a5 (diff)
downloadnextcloud-server-1a68e211a367d9a657acad3460c72b7663282c05.tar.gz
nextcloud-server-1a68e211a367d9a657acad3460c72b7663282c05.zip
Transpile arrow function for ie11 compatibility
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/updatenotification/webpack.common.js')
-rw-r--r--apps/updatenotification/webpack.common.js47
1 files changed, 25 insertions, 22 deletions
diff --git a/apps/updatenotification/webpack.common.js b/apps/updatenotification/webpack.common.js
index 08cb6031233..e77880f1a74 100644
--- a/apps/updatenotification/webpack.common.js
+++ b/apps/updatenotification/webpack.common.js
@@ -1,25 +1,28 @@
-const path = require('path')
+const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
- entry: path.join(__dirname, 'src', 'init.js'),
- output: {
- path: path.resolve(__dirname, './js'),
- publicPath: '/js/',
- filename: 'updatenotification.js'
- },
- module: {
- rules: [
- {
- test: /\.vue$/,
- loader: 'vue-loader',
- }
- ]
- },
- plugins: [
- new VueLoaderPlugin()
- ],
- resolve: {
- extensions: ['*', '.js', '.vue', '.json']
- }
-}
+ entry: path.join(__dirname, 'src', 'init.js'),
+ output: {
+ path: path.resolve(__dirname, './js'),
+ publicPath: '/js/',
+ filename: 'updatenotification.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader'
+ },
+ {
+ test: /\.js$/,
+ loader: 'babel-loader',
+ exclude: /node_modules/
+ }
+ ]
+ },
+ plugins: [new VueLoaderPlugin()],
+ resolve: {
+ extensions: ['*', '.js', '.vue', '.json']
+ }
+};