I'm using autoprefix in Angular 7 Project. But When I open the browser devtools and focus the element with class "simple-content", which has display flex as applied style, there is no expected 'prefixes'. In Angular 4-6 projects, this works ok.
Step 1: Run ng serve Step 2: Open the browser devtools and focus the element with class "simple-content", which has display:flex.
In package.json I have
{
"browserslist": [
"last 1 version",
"> 1%"
]
}.
In package-lock.json I have
"autoprefixer": {
"version": "9.4.4",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.4.4.tgz",
"integrity": "sha512-7tpjBadJyHKf+gOJEmKhZIksWxdZCSrnKbbTJNsw+/zX9+f//DLELRQPWjjjVoDbbWlCuNRkN7RfmZwDVgWMLw==",
"requires": {
"browserslist": "^4.3.7",
"caniuse-lite": "^1.0.30000926",
"normalize-range": "^0.1.2",
"num2fraction": "^1.2.2",
"postcss": "^7.0.7",
"postcss-value-parser": "^3.3.1"
},
I tried to enable autoprefixing for flexbox with /* autoprefixer: on */, but no result.
In css file i have
.simple-content {
display: flex;
}
Expected result :
.simple-content {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}