-
-
Notifications
You must be signed in to change notification settings - Fork 608
Closed
Description
Because we always use autoprefixer
to add prefixes for old browsers with custom browsers
config, just like iOS >= 8
etc. But cssnano
use default browsers
config for autoprefixer
to remove properties if we don't pass config to it. And then we need to write the config twice!
For example:
// webpack.config.js
var autoprefixerrc = {
browsers: ['iOS >= 8']
}
module.exports = {
module: {
loaders: [
{
test: /\.css$/,
loader: 'css-loader?' + JSON.stringify({autoprefixer: autoprefixer}) + '!postcss-loader'
}
]
},
postcss: [
autoprefixer(autoprefixerrc)
]
}
Metadata
Metadata
Assignees
Labels
No labels