Skip to content

Using cssnano's safe mode #433

Closed
Closed
@joe-bell

Description

@joe-bell

What is the current behavior?
Trying to use cssnano's safe: true mode doesn't seem to have any effect within minimize.

In my particular case, all gradients are affected by the minifyGradients option - this also doesn't work when set as false.

webpack.config.js

loaders: [
    'style-loader',
    {
        loader: 'css-loader',
        options: {
            importLoaders: 1,
            minimize: {
                safe: true
            }
        }
    },
    {
        loader: 'postcss-loader'
    }
]

What is the expected behavior?
Any cssnano options should work as expected

If this is a feature request, what is motivation or use case for changing the behavior?
Does it make more sense to change minmize to cssnano for clarity too?

cc @lbarratt @joshnesbitt

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions