Skip to content

Commit

Permalink
fix: Limit asset/source loader rule to resource query ?raw=
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 13, 2023
1 parent 88721e0 commit 8367252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { getCurrentUser } from '@nextcloud/auth'
import { showSuccess, showError } from '@nextcloud/dialogs'
import axios from '@nextcloud/axios'

import FilePlusSvg from '@mdi/svg/svg/file-plus.svg'
import FilePlusSvg from '@mdi/svg/svg/file-plus.svg?raw'

Check failure on line 36 in src/helpers/files.js

View workflow job for this annotation

GitHub Actions / eslint

Unable to resolve path to module '@mdi/svg/svg/file-plus.svg?raw'

const FILE_ACTION_IDENTIFIER = 'Edit with text app'

Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ webpackConfig.resolve.fallback = {
webpackRules.RULE_ASSETS.test = /\.(png|jpe?g|gif|woff2?|eot|ttf)$/
webpackRules.RULE_RAW_SVGS = {
test: /\.svg$/,
resourceQuery: /raw/,
type: 'asset/source',
}

Expand Down

0 comments on commit 8367252

Please sign in to comment.