diff options
author | silverwind <me@silverwind.io> | 2021-03-22 23:10:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 23:10:09 +0100 |
commit | 405969c541397e7b81765c162f1164bdee18d946 (patch) | |
tree | b60708f8910b58ed65ca227ed73cf6431b9a3307 /webpack.config.js | |
parent | dfb3e50dcea581b256d0fdf141d0c8fa8d75d78d (diff) | |
download | gitea-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.js | 6 |
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?)$/, |