This little example app shows how you can set up parcel-plugin-elm-svg
.
You can find the...
- module configuration under package.json
- source icons under src/assets
- generated module under src/Acme/Icons.elm
- usage under src/Main.elm
If you want to run the example app, you need to install the dependencies:
$ npm install
...and just start the dev server with:
$ npm start
Navigate to http://localhost:1234 and you'll see it:
The user icon in the example app is (C) Font Awesome.