Skip to content

Commit 73e2144

Browse files
authored
Add postcss-inline-svg (#212)
Lighter 2.x had `postcss-inline-svg`, but in 3.0 it was missing. It broke DDS. It provides `svg-load` function that inlines SVG into data-uri.
1 parent 7870f5c commit 73e2144

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

packages/react-scripts/config/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ module.exports = function(webpackEnv, options = {}) {
185185
},
186186
stage: 3,
187187
}),
188+
require('postcss-inline-svg')(),
188189
// Adds PostCSS Normalize as the reset css with default options,
189190
// so that it honors browserslist config in package.json
190191
// which in turn let's users customize the target behavior as per their needs.

packages/react-scripts/package-lock.json

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-scripts/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"optimize-css-assets-webpack-plugin": "5.0.3",
6666
"pnp-webpack-plugin": "1.6.0",
6767
"postcss-flexbugs-fixes": "4.1.0",
68+
"postcss-inline-svg": "^4.1.0",
6869
"postcss-loader": "3.0.0",
6970
"postcss-normalize": "8.0.1",
7071
"postcss-preset-env": "6.7.0",

0 commit comments

Comments
 (0)