postcss-flex-value
is a plugin of postcss, it transforms flex's "start" to "flex-start" to avoid issue like start value has mixed support, consider using flex-start instead
yarn add -D postcss-flex-value
.a {
display: flex;
justify-content: start;
align-items: end;
}
.a {
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
postcss([require('postcss-flex-value')]);
module.exports = {
module: {
rules: [
{
test: /\.(less|css)$/,
use: [{
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
plugins: require('postcss-flex-value')
}
}
}]
}
]
}
}