Socket
Socket
Sign inDemoInstall

optimize-css-assets-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimize-css-assets-webpack-plugin

A Webpack plugin to optimize \ minimize CSS assets.


Version published
Weekly downloads
1.8M
increased by3.36%
Maintainers
1
Weekly downloads
 
Created

What is optimize-css-assets-webpack-plugin?

The optimize-css-assets-webpack-plugin is a plugin for webpack that applies a chosen CSS optimizer/minifier on the CSS assets created by the CSS extraction plugin (like MiniCssExtractPlugin), optimizing and minimizing CSS files to ensure better load times and performance on the web.

What are optimize-css-assets-webpack-plugin's main functionalities?

CSS Optimization

This feature allows you to optimize and minimize CSS assets. The code sample shows how to include the OptimizeCSSAssetsPlugin in the webpack configuration to optimize CSS files.

const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserJSPlugin = require('terser-webpack-plugin');

module.exports = {
  optimization: {
    minimizer: [
      new TerserJSPlugin({}),
      new OptimizeCSSAssetsPlugin({})
    ]
  }
};

Other packages similar to optimize-css-assets-webpack-plugin

Keywords

FAQs

Package last updated on 30 Aug 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc