-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Images #34
Comments
Hi
You can either import them in JS files and get their source url: frontend-boilerplate/src/test/test.js Line 5 in 3e9e678
or directly in the ejs template file: <img src="./assets/images/your-image.jpg" alt="" />
The sprite.svg file is grouping several svg into one (gathered from <svg><use xlink:href="/sprite.svg?#test"></use></svg> You can find all the different ways of importing modules and assets here: frontend-boilerplate/src/test/test.js Lines 1 to 74 in 3e9e678
|
Hi
I have tried to put images inside the boilerplate (src\assets\images) and use it, without success.
I have not understood how to refer to the images
I have also removed style="display: none" from image inside index.ejs: but I don't see the sprite.svg.
So: I don't understand how to put and use images inside boilerplate
Can you explain the right way to use images?
ciao
matteo
The text was updated successfully, but these errors were encountered: