Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@intervolga/optimize-cssnano-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intervolga/optimize-cssnano-plugin

WebPack 2+ plugin for CSS minification after ExtractTextPluging

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @intervolga/optimize-cssnano-plugin?

@intervolga/optimize-cssnano-plugin is a plugin for optimizing CSS assets using cssnano within a webpack build process. It helps in minimizing CSS files to reduce the overall bundle size, which can improve the performance of web applications.

What are @intervolga/optimize-cssnano-plugin's main functionalities?

Basic CSS Optimization

This feature allows you to optimize and minify CSS files using cssnano. The configuration includes options for source maps and cssnano presets to customize the optimization process.

const OptimizeCSSNanoPlugin = require('@intervolga/optimize-cssnano-plugin');

module.exports = {
  // other webpack configuration
  plugins: [
    new OptimizeCSSNanoPlugin({
      sourceMap: true,
      cssnanoOptions: {
        preset: ['default', {
          discardComments: {
            removeAll: true,
          },
        }],
      },
    }),
  ],
};

Custom CSS Optimization

This feature allows for more advanced customization of the CSS optimization process. You can use different cssnano presets and options to fine-tune the minification and optimization according to your needs.

const OptimizeCSSNanoPlugin = require('@intervolga/optimize-cssnano-plugin');

module.exports = {
  // other webpack configuration
  plugins: [
    new OptimizeCSSNanoPlugin({
      cssnanoOptions: {
        preset: ['advanced', {
          discardComments: {
            removeAll: true,
          },
          reduceIdents: false,
        }],
      },
    }),
  ],
};

Other packages similar to @intervolga/optimize-cssnano-plugin

Keywords

FAQs

Package last updated on 19 Jul 2018

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