文件名称:gatsby-plugin-react-svg:将svg-react-loader添加到gatsby Webpack配置中
文件大小:7KB
文件格式:ZIP
更新时间:2024-05-20 20:16:27
gatsby hacktoberfest react-svg JavaScript
gatsby-plugin-react-svg 将添加到gatsby Webpack配置中。 注意:如果配置无效,插件可以从内置的url-loader配置中删除SVG 。 安装 npm install --save gatsby-plugin-react-svg 如何使用 // In your gatsby-config.js plugins: [ { resolve : "gatsby-plugin-react-svg" , options : { rule : { include : / assets / // See below to configure properly } } } ] ; 配置 rule插件选项可用于传递。 如果存在include或exclude选项,则svg-react-loader将
【文件预览】:
gatsby-plugin-react-svg-master
----yarn.lock(5KB)
----gatsby-node.js(2KB)
----LICENSE(1KB)
----README.md(4KB)
----.gitignore(14B)
----package.json(792B)