Ionic-app-scripts: v1.1.X removes -webkit-box-orient from the css

Created on 17 Mar 2017  路  9Comments  路  Source: ionic-team/ionic-app-scripts

Hi!

Short description of the problem:

If you use the CSS property -webkit-box-orient, it is removed in the build. It worked well in v1.0.x

What behavior are you expecting?

The build should have this property.

.three_lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

Which @ionic/app-scripts version are you using?
v1.1.4

The same issue was rejected in ionic repository: https://github.com/driftyco/ionic/issues/10723

Thank you very much!

Most helpful comment

I was able to properly fix this by specifying my own _.scss.config.js_:

module.exports = {
  autoprefixer: {
    remove: false
  },
};

And pointing to it in _package.json_:

  "config": {
    "ionic_sass": ".sass.config.js"
  },

See this and this for more details

All 9 comments

Yes? i'm not work to scss

  .pod_c {
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   vertical-align: middle;
   font-size: 0.7em;
  }

Same here. And can't find another solution to have same behaviour other than wrapping text previously to be shown what i am not confortable with

+1 one for this - it simply removes "-webkit-box-orient: vertical;" from css

I was able to properly fix this by specifying my own _.scss.config.js_:

module.exports = {
  autoprefixer: {
    remove: false
  },
};

And pointing to it in _package.json_:

  "config": {
    "ionic_sass": ".sass.config.js"
  },

See this and this for more details

thansk )))

close team please

Nice workaround @aspidvip ! Thanks!

@vhinic thanks for u ,solve my problem 馃憤 馃檹

Was this page helpful?
0 / 5 - 0 ratings