Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
asset-config-webpack-plugin
Advanced tools
Preset for font and image webpack loader configurations
Creating a webpack loader configurations can be quite time consuming.
The asset-config-webpack-plugin
is part of the common-config-webpack-plugin
suite which tries to provide best practices for the most common loader requirements.
npm i --save-dev asset-config-webpack-plugin
The asset-config-webpack-plugin
is just a small convince wrapper around the image-config-plugin
and the font-config-plugin
npm packages.
const AssetConfigWebpackPlugin = require('asset-config-webpack-plugin');
module.exports = {
plugins: [new AssetConfigWebpackPlugin()],
};
For more control please use the image-config-plugin
and/or the font-config-plugin
instead of the asset-config-webpack-plugin
.
const FontConfigWebpackPlugin = require('font-config-webpack-plugin');
const ImageConfigWebpackPlugin = require('image-config-webpack-plugin');
module.exports = {
plugins: [
new FontConfigWebpackPlugin(),
new ImageConfigWebpackPlugin(),
],
};
2.0.3 (2021-05-20)
Note: Version bump only for package webpack-config-plugins
FAQs
Preset for font and image webpack loader configurations
The npm package asset-config-webpack-plugin receives a total of 22 weekly downloads. As such, asset-config-webpack-plugin popularity was classified as not popular.
We found that asset-config-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.