You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
289K
-12.92%
Maintainers
1
Weekly downloads
 
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

html

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