diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-23 16:29:33 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-23 16:29:33 +0300 |
commit | 502312401d5bda1c1721f16452edc2198715407f (patch) | |
tree | 86895ccdb3837225f24f0d8aa3371f17dabd395c /webpack.common.js | |
parent | dfe651eee4d712cc3f252f9a2629143d0cff9fe8 (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.js | 59 |
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 |