Skip to content

Commit

Permalink
feat: added swc minimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 29, 2022
1 parent b7e09f9 commit 4a3638e
Show file tree
Hide file tree
Showing 7 changed files with 604 additions and 2 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,27 @@ module.exports = {
};
```

### Using custom minifier [swc](https://github.com/swc-project/swc)

**webpack.config.js**

```js
module.exports = {
// Uncomment if you need source maps
// devtool: "source-map",
optimization: {
minimize: true,
minimizer: [
new CssMinimizerPlugin({
minify: CssMinimizerPlugin.swcMinify,
// Uncomment this line for options
// minimizerOptions: {},
}),
],
},
};
```

## Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.
Expand Down

0 comments on commit 4a3638e

Please sign in to comment.