aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-15 09:27:50 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-11-14 20:27:50 -0500
commit42ada741e3360b14ede8772aa1a2dd3e83209033 (patch)
tree1091690dd254f71887ffc2ad00ff2839ebcd33c4 /webpack.config.js
parent06a8504c784fe404bcae92028515add816383729 (diff)
downloadgitea-42ada741e3360b14ede8772aa1a2dd3e83209033.tar.gz
gitea-42ada741e3360b14ede8772aa1a2dd3e83209033.zip
Pack web_src/js/draw.js to public/js/index.js (#8975)
* pack web_src/js/draw.js to public/js/index.js * fix eslint
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 8749e93914..4fdf4ba5a4 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -4,12 +4,12 @@ const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
- index: './web_src/js/index.js',
+ index: ['./web_src/js/index', './web_src/js/draw']
},
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'public/js'),
- filename: '[name].js'
+ filename: 'index.js'
},
optimization: {
minimize: true,