summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2020-01-20 12:07:30 +0200
committerGitHub <noreply@github.com>2020-01-20 12:07:30 +0200
commit81cfe243f9cb90b0a75de7a03bb2d264c97f0036 (patch)
tree0b98db10d626eff18384ad460ec04e2a6da61468 /webpack.config.js
parent7d7ab1eeae43d99fe329878ac9c8db5e45e2dee5 (diff)
downloadgitea-81cfe243f9cb90b0a75de7a03bb2d264c97f0036.tar.gz
gitea-81cfe243f9cb90b0a75de7a03bb2d264c97f0036.zip
Add top author stats to activity page (#9615)
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 02528cf0df..a7d9c4b979 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,6 +1,7 @@
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const { SourceMapDevToolPlugin } = require('webpack');
+const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
mode: 'production',
@@ -29,6 +30,11 @@ module.exports = {
module: {
rules: [
{
+ test: /\.vue$/,
+ exclude: /node_modules/,
+ loader: 'vue-loader'
+ },
+ {
test: /\.js$/,
exclude: /node_modules/,
use: {
@@ -49,7 +55,8 @@ module.exports = {
{
regenerator: true,
}
- ]
+ ],
+ '@babel/plugin-proposal-object-rest-spread',
],
}
}
@@ -61,6 +68,7 @@ module.exports = {
]
},
plugins: [
+ new VueLoaderPlugin(),
new SourceMapDevToolPlugin({
filename: '[name].js.map',
exclude: [