A React-Static plugin that adds loader support for svg
- In an existing react-static site run:
$ yarn add react-static-plugin-svg
- Then add the plugin to your
static.config.js
:
export default {
plugins: ["react-static-plugin-svg"]
};
- You can now import
.svg
files.