Make icons and sprite publicly available (fixes #35 ).
This was a bit tricky because the Mapbox style specification forbids relative urls. Consequently I had to add a new .env variable that points to the public URL where the project is deployed: PUBLIC_URL.
Sprite sheets are built automatically from the styles/icons directory when running the build or build-sprites npm scripts.
Make icons and sprite publicly available (fixes #35 ).
This was a bit tricky because the Mapbox style specification forbids relative urls. Consequently I had to add a new
.env
variable that points to the public URL where the project is deployed:PUBLIC_URL
.Sprite sheets are built automatically from the
styles/icons
directory when running thebuild
orbuild-sprites
npm scripts.cc/ @leonhandreke