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

it change my css code #67

Closed
xwuji opened this issue Jul 18, 2018 · 1 comment
Closed

it change my css code #67

xwuji opened this issue Jul 18, 2018 · 1 comment

Comments

@xwuji
Copy link

xwuji commented Jul 18, 2018

hi,
my css code is
.card-small-sku { width: 100%; height: 2.2rem; margin: .3rem auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -moz-align-items: center; -webkit-align-items: center; align-items: center; position: relative }
after webpack with using this plugin,it becomes likes this:
.card-small-sku { width: 100%; height: 2.2rem; margin: .3rem auto; display: flex; -moz-align-items: center; align-items: center; position: relative }
this code lost some prefix that want to fit some browsers
what should i do , change some plugin params?

@NMFR
Copy link
Owner

NMFR commented Jul 18, 2018

The plugin uses cssnano as a cssProcessor by default. You can control the cssnano options via the cssProcessorOptions option.

    new OptimizeCssAssetsPlugin({
      cssProcessorOptions: { safe: true, discardComments: { removeAll: true } }
    })

Take a look at cssnano options (you probably want to control the autoprefixer options).

@NMFR NMFR closed this as completed Jul 18, 2018
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

No branches or pull requests

2 participants