Skip to content

ignatiqq/optimized-css-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

optimized-css-hash

Usage

You can use it like a getLocalIdent option in the 'css-loader'.

const {createGenerator} = require('optimized-css-hash');

{
            loader: 'css-loader',
            options: {
                modules: {
                    // pathHash is the required name to place the optimized hash in the class name.
                    localIdentName: '[name]__[local]___[pathHash]',
                    mode: 'global',
                    getLocalIdent: createGenerator(),
                },
            },
        },

article idea - https://dev.to/denisx/reduce-bundle-size-via-one-letter-css-classname-hash-strategy-10g6

About

Optimized css-loader hash for classnames based on the resoursePath

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published