summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-08-17 07:32:48 +0200
committerGitHub <noreply@github.com>2021-08-17 01:32:48 -0400
commitea07726dc193c41c60e26c25ad705059bd4f6555 (patch)
tree5d3191bd5a1968893e599eadca279a3f527617b9 /webpack.config.js
parentcf4328359bb765ebccc592d8fe50cd8190455220 (diff)
downloadgitea-ea07726dc193c41c60e26c25ad705059bd4f6555.tar.gz
gitea-ea07726dc193c41c60e26c25ad705059bd4f6555.zip
Update JS dependencies (#16708)
* Update JS dependencies - Update all JS dependencies - Adapt to recent webpack changes - Add new lint rules and fix issues - Regenerate SVGs and update svgo api usage Fixes: https://github.com/go-gitea/gitea/pull/16492 * adapt jest config and sort keys Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 9b27bb55ac..1839cf11eb 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -137,8 +137,8 @@ export default {
loader: 'css-loader',
options: {
sourceMap: true,
- url: filterCssImport,
- import: filterCssImport,
+ url: {filter: filterCssImport},
+ import: {filter: filterCssImport},
},
},
],
@@ -154,8 +154,8 @@ export default {
options: {
sourceMap: true,
importLoaders: 1,
- url: filterCssImport,
- import: filterCssImport,
+ url: {filter: filterCssImport},
+ import: {filter: filterCssImport},
},
},
{
@@ -176,7 +176,6 @@ export default {
type: 'asset/resource',
generator: {
filename: 'fonts/[name][ext]',
- publicPath: '../', // required to remove css/ path segment
}
},
{
@@ -184,7 +183,6 @@ export default {
type: 'asset/resource',
generator: {
filename: 'img/webpack/[name][ext]',
- publicPath: '../', // required to remove css/ path segment
}
},
],