Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
webp-loader
Advanced tools
WebP image loader & converter loader for Webpack.
npm install webp-loader --save-dev
Here is the example of using webp-loader
along with common file-loader:
loaders: [
{
test: /\.(jpe?g|png)$/i,
loaders: [
'file-loader',
'webp-loader'
]
}
]
Unfortunately, if you wish to pass an options for internal imagemin-webp you should pass a options in JSON form:
loaders: [
{
test: /\.(jpe?g|png)$/i,
loaders: [
'file-loader',
'webp-loader?{quality: 13}'
]
}
]
Normally you don't want to convert all of your images to WebP format, you just want to make alternate versions. You can use multi-loader to achieve it:
loaders: [
{
test: /\.(jpe?g|png)$/i,
loader: multi(
'file-loader?name=[name].[ext].webp!webp-loader?{quality: 95}'
'file-loader?name=[name].[ext]',
)
},
]
For all possible options please visit "API" section of the official imagemin-webp README.
webp-loader
is heavily inspired by tcoopman/image-webpack-loader.
FAQs
WebP image loader & converter for Webpack
The npm package webp-loader receives a total of 4,518 weekly downloads. As such, webp-loader popularity was classified as popular.
We found that webp-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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.