Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-23 16:29:33 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-23 16:29:33 +0300
commit502312401d5bda1c1721f16452edc2198715407f (patch)
tree86895ccdb3837225f24f0d8aa3371f17dabd395c /webpack.common.js
parentdfe651eee4d712cc3f252f9a2629143d0cff9fe8 (diff)
Move webpack config to repo root
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js59
1 files changed, 59 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
new file mode 100644
index 000000000..9b6bf6efa
--- /dev/null
+++ b/webpack.common.js
@@ -0,0 +1,59 @@
+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: 'mail.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /davclient/,
+ use: 'exports-loader?dav'
+ },
+ {
+ test: /ical/,
+ use: 'exports-loader?ICAL'
+ },
+ {
+ 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)$/,
+ loader: 'file-loader',
+ options: {
+ name: '[name].[ext]?[hash]'
+ }
+ },
+ {
+ test: /\.(svg)$/i,
+ use: [
+ {
+ loader: 'url-loader'
+ }
+ ]
+ }
+ ]
+ },
+ plugins: [new VueLoaderPlugin()],
+ resolve: {
+ extensions: ['*', '.js', '.vue', '.json']
+ }
+}; \ No newline at end of file