Skip to content

Using the path of an imported resource within my code. #9297

Answered by mischnic
zeel01 asked this question in Q&A
Discussion options

You must be logged in to vote

Try

import styles from 'url:./styles.css';

or

new URL('./styles.css', import.meta.url)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mischnic
Comment options

@zeel01
Comment options

@zeel01
Comment options

@mischnic
Comment options

@zeel01
Comment options

Answer selected by zeel01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants