Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

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/
This commit is contained in:
silverwind 2021-03-22 23:10:09 +01:00 committed by GitHub
parent dfb3e50dce
commit 405969c541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 37 deletions

31
package-lock.json generated
View file

@ -6848,37 +6848,6 @@
"safe-buffer": "^5.1.0" "safe-buffer": "^5.1.0"
} }
}, },
"raw-loader": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz",
"integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==",
"requires": {
"loader-utils": "^2.0.0",
"schema-utils": "^3.0.0"
},
"dependencies": {
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"schema-utils": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",
"integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==",
"requires": {
"@types/json-schema": "^7.0.6",
"ajv": "^6.12.5",
"ajv-keywords": "^3.5.2"
}
}
}
},
"read-pkg": { "read-pkg": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",

View file

@ -35,7 +35,6 @@
"monaco-editor-webpack-plugin": "3.0.1", "monaco-editor-webpack-plugin": "3.0.1",
"postcss": "8.2.8", "postcss": "8.2.8",
"pretty-ms": "7.0.1", "pretty-ms": "7.0.1",
"raw-loader": "4.0.2",
"sortablejs": "1.13.0", "sortablejs": "1.13.0",
"swagger-ui-dist": "3.45.1", "swagger-ui-dist": "3.45.1",
"terser-webpack-plugin": "5.1.1", "terser-webpack-plugin": "5.1.1",

View file

@ -207,11 +207,7 @@ module.exports = {
{ {
test: /\.svg$/, test: /\.svg$/,
include: resolve(__dirname, 'public/img/svg'), include: resolve(__dirname, 'public/img/svg'),
use: [ type: 'asset/source',
{
loader: 'raw-loader',
},
],
}, },
{ {
test: /\.(ttf|woff2?)$/, test: /\.(ttf|woff2?)$/,