New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nukecss-webpack

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nukecss-webpack

Eliminates unused css from your webpack bundle.

latest
Source
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

nukecss-webpack

NPM Package Build Status Coverage Status Commitizen friendly Dependencies

Uses nukecss to eliminate unused css from your webpack bundle. Support for the extract-text-webpack-plugin and for style-loader.

# for webpack 4 and mini-css-extract-plugin
npm install --save-dev nukecss-webpack
# for webpack 2/3 and extract-text-webpack-plugin
npm install --save-dev nukecss-webpack@^1.4.0
```


## Usage

#### Install nukecss-webpack
`npm install --save-dev nukecss-webpack`

#### Setup Your Webpack Configuration
```js
const NukeCssPlugin = require('nukecss-webpack')

module.exports = {
  entry: 'my-entry.js',
  output: {
    // ...
  },
  plugins: [
    // ...
    new NukeCssPlugin()
  ],
}

Save Bytes

Before

out.css   146 kB       0  [emitted]  main

After

out.css  6.82 kB       0  [emitted]  main

Keywords

webpack

FAQs

Package last updated on 12 Feb 2019

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