0.1.0 • Published 7 years ago

webpack-css-min v0.1.0

Weekly downloads
100
License
ISC
Repository
github
Last release
7 years ago

Webpack css minimize / compression plugin

cssnano will rebase z-index values by default and silently.

I didn't know, and the optimization created some bug, which made me confused.

This is a simple compression plugin that only removes redundant or unnecessary characters and comments.

webpack-css-min install

npm i webpack-css-min --save-dev

webpack-css-min usage

// webpack.config.js

module.exports = {
    // ...
    plugins: [
        // ...
        require('webpack-css-min')
        // ...
    ]
    // ...
};

Aside

Read cssnano documentation for more optimisations.