dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.42k stars 501 forks source link

How To Minify Classnames? #271

Closed paulwongx closed 3 years ago

paulwongx commented 3 years ago

I'm confused how to use the css minification options in craco. Putting the settings below (separately) doesn't apply the minification to my css:

// craco.config.js
module.exports = {
    style: {
        postcss: {
            // loaderOptions: {
            //     modules: {
            //         localIdentName: '[sha1:hash:hex:4]'
            //     },
            //     importLoaders: 1
            // },
        },
        // css: {
        //     loaderOptions: {
        //         modules: {
        //             localIdentName: '[sha1:hash:hex:4]'
        //         },
        //         importLoaders: 1
        //     },
        // }
    },
};
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jdbertron commented 1 year ago

I love it when AI decides you don't really have a problem because you disappeared.