Skip to content
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

cssnano options #340

Closed
HuJean opened this issue Dec 6, 2020 · 0 comments · Fixed by #357
Closed

cssnano options #340

HuJean opened this issue Dec 6, 2020 · 0 comments · Fixed by #357

Comments

@HuJean
Copy link

HuJean commented Dec 6, 2020

postcss({
minimize: {
preset: ['default',{
mergeRules: false
}]
},
extract: 'components.css',
plugins: [
postcssSvg()
]
})

Config postcss like above, the preset dosen't work for cssnano.

Maybe can optimize the source code as the second choice.

  1. const result = yield require('cssnano').process(code, cssOptions);
  2. const result = yield require('cssnano').process(code, cssOptions, postcssLoaderOptions.minimize);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant