React
@svgr/webpackを利用する。 react-svgr.com npm install @svgr/webpack --save-dev # or use yarn yarn add @svgr/webpack --dev next.config.js module.exports = { webpack(config) { config.module.rules.push({ test: /\.svg$/, issuer: { test: /\.(js|…
@svgr/webpackを利用する。 react-svgr.com npm install @svgr/webpack --save-dev # or use yarn yarn add @svgr/webpack --dev next.config.js module.exports = { webpack(config) { config.module.rules.push({ test: /\.svg$/, issuer: { test: /\.(js|…