/react-static-plugin-svg

A React-Static plugin that adds loader support for svg

Primary LanguageJavaScript

react-static-plugin-svg

A React-Static plugin that adds loader support for svg

Installation

  • 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.