Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
svg-scaler-loader
Advanced tools
yarn add style-loader --dev
or using npm
npm install style-loader --save-dev
It's recommended to combine svg-scaler-loader
with the @svgr/webpack
component.js
import Icon from './icon.svg'
webpack.config.js
{
module: {
rules: [
{
test: /\.svg$/,
use: [
{ loader: '@svgr/webpack' },
{
loader: 'svg-scaler-loader',
options: {
width: 24,
}
}
]
}
]
}
}
svgo
type:boolean
, default is false
, if you want optimize with svgo, please set it true
;
width
type:number
, will make the svg scale to the size by the number, will fix to square, unity all svg files to same size.
type:number
, just normal scale
, but if have the width or the height option, the scale
will not work.
FAQs
Webpack svg scale loader
We found that svg-scaler-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.