-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What about images ? #9
Comments
How are you targeting the images? Do you have an example I can see? |
I'm creating it locally first, then I'll publish later.. but I was importing them like that:
then after building I would change the '../../../assets' to './assets' because the folder of the assets is in the same folder that the main.js is after the build.. so it was suppose to work.. I've published websites like that before without they being wordpress plugins.. but them after I move all the content to wordpress plugins folder, It wouldn't appear on the page. I solved that by importing the images directly from the wordpress media url, like that: The only problem is that some SVG I wasn't able to upload into wordpress media.. but its alright.. |
This repo might be helpful: |
I was able to reproduce your issue on my end. Nice catch! I never encountered it because I also target images in the WordPress media library but this is something that should probably be pointed out in the README. I tried importing an image with Regarding your issue with uploading svgs; have you tried doing so directly via FTP? |
I tried to implement that and worked, but I can't make my images work because somehow they don't get imported into the page.
The text was updated successfully, but these errors were encountered: