aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-01-21 18:32:33 +0100
committerLauris BH <lauris@nix.lv>2020-01-21 19:32:33 +0200
commit2982afe6b498f9d61bd48407c5408299a1cbbc60 (patch)
tree391483c055d7a657968c8da4af63f9908adbcf77 /webpack.config.js
parent0e8b27afe8aaa9055be24f71e8543f2701f18291 (diff)
downloadgitea-2982afe6b498f9d61bd48407c5408299a1cbbc60.tar.gz
gitea-2982afe6b498f9d61bd48407c5408299a1cbbc60.zip
move jquery and jquery-migrate to npm/webpack (#9813)
Currently, this needs to be its own chunk because fomantic depends on jQuery being present. The next step is to move fomantic to webpack too after which we can combine the index,fomantic and jquery files into one. jquery-migrate is still neccessary because our ancient version of Dropzone seems to break without it. I imagine it can be removed after a Dropzone upgrade.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index a7d9c4b979..a56b37c845 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -8,6 +8,7 @@ module.exports = {
entry: {
index: ['./web_src/js/index'],
swagger: ['./web_src/js/swagger'],
+ jquery: ['./web_src/js/jquery'],
},
devtool: false,
output: {
@@ -77,6 +78,8 @@ module.exports = {
}),
],
performance: {
+ maxEntrypointSize: 512000,
+ maxAssetSize: 512000,
assetFilter: (filename) => {
return !filename.endsWith('.map') && filename !== 'swagger.js';
}