Closed farhad-arjmand closed 5 years ago
i want to link css file to layout or i want to link image to img tag , icant find correct path
CSS is handled automatically, you don't have to do anything manually.
To link image just place it in the assets/i
directory and require/import it anywhere you want. To import image from template directly use something like img(src="~assets/i/image.jpg")
and Webpack will resolve it.
thanks
i want to link icon to meta tags , but not found link(rel='mask-icon', href='~assets/icons/safari-pinned-tab.svg', color='#5bbad5')
or
link(rel='mask-icon', href='/assets/icons/safari-pinned-tab.svg', color='#5bbad5')
Page not found :(
You don't need routes for CSS and JS files. You definitely do something wrong or I just don't understand what do you really want to achieve.