
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
swc-minify-webpack-plugin
Advanced tools
Faster minimizer plugin for webpack based on swc.minify()
.
This plugin is forked from swc-webpack-plugin, with following differences:
swc.minify()
instead of swc.transform()
, for better performancemangle
by default for better compression rateThis plugin is faster than terser-webpack-plugin's swc mode.
npm i -D swc-minify-webpack-plugin
Recommended configuration:
// webpack.config.js
const { SwcMinifyWebpackPlugin } = require('swc-minify-webpack-plugin');
module.exports = {
optimization: {
minimize: true,
minimizer: [new SwcMinifyWebpackPlugin()],
},
};
Custom configuration:
// webpack.config.js
const { SwcMinifyWebpackPlugin } = require('swc-minify-webpack-plugin');
module.exports = {
optimization: {
minimize: true,
minimizer: [
new SwcMinifyWebpackPlugin({
compress: false,
mangle: true,
}),
],
},
};
compress
Type: boolean | object
Default: true
See https://swc.rs/docs/configuration/minification#jscminifycompress
mangle
Type: boolean | object
Default: true
See https://swc.rs/docs/configuration/minification#jscminifymangle
format
Type: object
See https://swc.rs/docs/configuration/minification#jscminifyformat
2.1.3 - 2024-08-22
FAQs
A faster minimizer for webpack based on swc.minify()
The npm package swc-minify-webpack-plugin receives a total of 33,918 weekly downloads. As such, swc-minify-webpack-plugin popularity was classified as popular.
We found that swc-minify-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.