Package Exports
- oxc-minify-webpack-plugin
- oxc-minify-webpack-plugin/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oxc-minify-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
oxc-minify-webpack-plugin
Unofficial Webpack plugin that adds support for oxc-minify.
Install
npm i -D oxc-minify-webpack-plugin
or
bun i -D oxc-minify-webpack-plugin
Usage
import { OxcMinifyWebpackPlugin } from "oxc-minify-webpack-plugin";
export default () => {
return {
optimization: {
minimize: true,
minimizer: [
new OxcMinifyWebpackPlugin({
// options
}),
],
},
};
};
Available options:
compress
Type: boolean | CompressOptions
Default: { target: "esnext" }
mangle
Type: boolean | MangleOptions
Default: true
codegen
Type: boolean | CodegenOptions
Default: { removeWhitespace: true }
sourcemap
Type: boolean
Default: false
Detailed options can be found in the oxc-minify type declarations.