I'm using React.js and Babel, and importing png images of different sizes (some of them are more than 10kb of size). And when loaded to the docker-compose url, relative path is not working.
Here is my .babelrc file content
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-proposal-class-properties",
["babel-plugin-styled-components", {
"ssr": false,
}],
"babel-plugin-transform-inline-environment-variables"
]
}
So I want to load all the images as base64 aven those whose size are more than 10kb (limit). How to change the configuration for Babel?
Thank you in advance!