diff options
author | silverwind | 2021-08-17 07:32:48 +0200 |
---|---|---|
committer | GitHub | 2021-08-17 01:32:48 -0400 |
commit | ea07726dc193c41c60e26c25ad705059bd4f6555 (patch) | |
tree | 5d3191bd5a1968893e599eadca279a3f527617b9 /webpack.config.js | |
parent | cf4328359bb765ebccc592d8fe50cd8190455220 (diff) |
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.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js index 9b27bb55a..1839cf11e 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 } }, ], |