- Import from '@mdi/svg/svg/icon.svg?raw'

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2022-11-17 18:00:54 -08:00
Родитель 41b9bc687e
Коммит efaebcd409
3 изменённых файлов: 18 добавлений и 0 удалений

13
package-lock.json сгенерированный
Просмотреть файл

@ -45,6 +45,7 @@
"@cypress/webpack-dev-server": "^1.8.4", "@cypress/webpack-dev-server": "^1.8.4",
"@cypress/webpack-preprocessor": "5.15.5", "@cypress/webpack-preprocessor": "5.15.5",
"@fontsource/roboto": "^4.5.8", "@fontsource/roboto": "^4.5.8",
"@mdi/svg": "^7.0.96",
"@nextcloud/babel-config": "^1.0.0", "@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.3.0", "@nextcloud/browserslist-config": "^2.3.0",
"@nextcloud/eslint-config": "^8.1.3", "@nextcloud/eslint-config": "^8.1.3",
@ -4861,6 +4862,12 @@
"@jridgewell/sourcemap-codec": "^1.4.10" "@jridgewell/sourcemap-codec": "^1.4.10"
} }
}, },
"node_modules/@mdi/svg": {
"version": "7.0.96",
"resolved": "https://registry.npmjs.org/@mdi/svg/-/svg-7.0.96.tgz",
"integrity": "sha512-5DC+w7Kl2C82j4aTWCUf6wtHzgY60WBf1gT1qrpkLaMNcH6Vj9FpYPAXdSmtdkmSMvVMs8i1Rtv9cXWcHFQYpw==",
"dev": true
},
"node_modules/@nextcloud/auth": { "node_modules/@nextcloud/auth": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.0.0.tgz",
@ -33298,6 +33305,12 @@
"@jridgewell/sourcemap-codec": "^1.4.10" "@jridgewell/sourcemap-codec": "^1.4.10"
} }
}, },
"@mdi/svg": {
"version": "7.0.96",
"resolved": "https://registry.npmjs.org/@mdi/svg/-/svg-7.0.96.tgz",
"integrity": "sha512-5DC+w7Kl2C82j4aTWCUf6wtHzgY60WBf1gT1qrpkLaMNcH6Vj9FpYPAXdSmtdkmSMvVMs8i1Rtv9cXWcHFQYpw==",
"dev": true
},
"@nextcloud/auth": { "@nextcloud/auth": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.0.0.tgz",

Просмотреть файл

@ -79,6 +79,7 @@
"@cypress/webpack-dev-server": "^1.8.4", "@cypress/webpack-dev-server": "^1.8.4",
"@cypress/webpack-preprocessor": "5.15.5", "@cypress/webpack-preprocessor": "5.15.5",
"@fontsource/roboto": "^4.5.8", "@fontsource/roboto": "^4.5.8",
"@mdi/svg": "^7.0.96",
"@nextcloud/babel-config": "^1.0.0", "@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.3.0", "@nextcloud/browserslist-config": "^2.3.0",
"@nextcloud/eslint-config": "^8.1.3", "@nextcloud/eslint-config": "^8.1.3",

Просмотреть файл

@ -123,6 +123,10 @@ const config = {
test: /\.svg/, test: /\.svg/,
type: 'asset/inline', type: 'asset/inline',
}, },
{
resourceQuery: /raw/,
type: 'asset/source',
},
], ],
}, },
plugins: [ plugins: [