summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-03-22 23:10:09 +0100
committerGitHub <noreply@github.com>2021-03-22 23:10:09 +0100
commit405969c541397e7b81765c162f1164bdee18d946 (patch)
treeb60708f8910b58ed65ca227ed73cf6431b9a3307 /webpack.config.js
parentdfb3e50dcea581b256d0fdf141d0c8fa8d75d78d (diff)
downloadgitea-405969c541397e7b81765c162f1164bdee18d946.tar.gz
gitea-405969c541397e7b81765c162f1164bdee18d946.zip
Remove raw-loader dependency (#15112)
Webpack now includes this functionality, allowing us to drop this now-deprecated dependency. Ref: https://webpack.js.org/guides/asset-modules/ Ref: https://webpack.js.org/loaders/raw-loader/
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/webpack.config.js b/webpack.config.js
index d21ab1d830..931cc62f9b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -207,11 +207,7 @@ module.exports = {
{
test: /\.svg$/,
include: resolve(__dirname, 'public/img/svg'),
- use: [
- {
- loader: 'raw-loader',
- },
- ],
+ type: 'asset/source',
},
{
test: /\.(ttf|woff2?)$/,