summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/webpack.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-15 20:31:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-18 13:22:58 +0100
commitd6ba42057f05d19e57ca4300b059c635a8613b60 (patch)
tree0e6f29eae0483b91e1dc724043596ed5d9c49d15 /apps/updatenotification/webpack.js
parente91f052576208d763246c190f1d919c0dd4a655a (diff)
downloadnextcloud-server-d6ba42057f05d19e57ca4300b059c635a8613b60.tar.gz
nextcloud-server-d6ba42057f05d19e57ca4300b059c635a8613b60.zip
Move updatenotifications to unified webpack
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/updatenotification/webpack.js')
-rw-r--r--apps/updatenotification/webpack.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/updatenotification/webpack.js b/apps/updatenotification/webpack.js
new file mode 100644
index 00000000000..cdaad96f4b0
--- /dev/null
+++ b/apps/updatenotification/webpack.js
@@ -0,0 +1,32 @@
+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'
+ },
+ {
+ test: /\.js$/,
+ loader: 'babel-loader',
+ exclude: /node_modules/
+ },
+ {
+ test: /\.s[a|c]ss$/,
+ loader: 'style-loader!css-loader!sass-loader'
+ }
+ ]
+ },
+ plugins: [new VueLoaderPlugin()],
+ resolve: {
+ extensions: ['*', '.js', '.vue', '.json']
+ }
+};