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)
]
}
OMG!
How long do we need to wait for the next version? I don't know how many people gave up the flex layout for this reason. 馃槀馃槀
We will certainly release a new version when webpack v2 comes out (shouldn't be too long), since #320 needs to be fixed for v2. However, I'll ask if we can release a version before this.
I think its necessary if change too much between webpack 1 and 2.
+1 for a new release asap :)
Done! See 0.26.0.
Most helpful comment
Done! See
0.26.0.