Skip to content

Document by default disabled cssnano transforms #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nene opened this issue Apr 20, 2016 · 1 comment · Fixed by #742
Closed

Document by default disabled cssnano transforms #265

nene opened this issue Apr 20, 2016 · 1 comment · Fixed by #742

Comments

@nene
Copy link

nene commented Apr 20, 2016

After lots of fiddling with cssnano, I finally looked at the css-loader source code to discover that some of the options are disabled by default:

    if(minimize) {
        var minimizeOptions = assign({}, query);
        ["zindex", "normalizeUrl", "discardUnused", "mergeIdents", "reduceIdents"].forEach(function(name) {
            if(typeof minimizeOptions[name] === "undefined")
                minimizeOptions[name] = false;
        });
        pipeline.use(cssnano(minimizeOptions));
    }

I managed to track this feature down to a commit titled Add useful minimize options.

Would be nice when the README also documented that some transforms are disabled, and explain why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants