JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q41841F
  • License MIT

Eliminates unused css from your webpack bundle.

Package Exports

  • nukecss-webpack

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nukecss-webpack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

Usage

Install nukecss-webpack

npm install --save-dev nukecss-webpack

Setup Your Webpack Configuration

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