javascript - Inlining SVG files in html using webpack -


im building web app, using .svg's icons. time i've been using loader: https://github.com/appedemic/inline-svg-loader inline svgs in html, seems of hack, , doesn't work when using minifying.

i've spend hours try come fix. want this:

<button>   <svg src="../../assets/icons/music_note.svg"> </button> 

to turn this:

<button>   <svg>...</svg> </button> 

now syntax doesn't have way, of course, know of loaders or solutions problem?


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -