Closed Thatoo closed 3 weeks ago
I tried to import svg like that also but it didn't help :
import EyeIcon from '../img/eye.svg'
import '../img/pencil.svg?raw'
import '../img/open-in-new.svg'
So,
this works
import EyeIcon from '@mdi/svg/svg/eye.svg?raw'
but it requires to add something like
const webpackConfig = require(' Nextcloud /webpack-vue-config')
webpackConfig.module.rules.push({
resourceQuery: /raw/,
type: 'asset/source',
})
in the webpack.config.js
or webpack.js
file. Source : https://github.com/nextcloud-libraries/webpack-vue-config/tree/main?tab=readme-ov-file#replaceedit-existing-rule
Hello,
Here is an extract from my code (full code available here : https://github.com/Thatoo/picker/blob/one_page/src/main.js ) :
It builds but none of the three icons are displayed when loading the page :