0.1.0 • Published 7 months ago
@rambler-tech/razzle-svgr v0.1.0
SVGR Plugin
Transform SVGs into React components
Install
npm install -D @rambler-tech/razzle-svgr
or
yarn add -D @rambler-tech/razzle-svgr
Usage
Add the plugin to razzle.config.js
const SvgrPlugin = require('@rambler-tech/razzle-svgr')
module.exports = {
plugins: [
SvgrPlugin()
],
modifyWebpackConfig({webpackConfig}) {
// ...
return webpackConfig
}
}
0.1.0
7 months ago