How to use PostCSS in angular cli
Asked Answered
E

2

9

I'm starting a new project with angular 4, and I want to integrate with PostCss for use modules such as: Autoprefixer, CSSNext and another modules.

Edlyn answered 27/4, 2017 at 0:56 Comment(0)
B
2

you can try this way https://github.com/angular/angular-cli/issues/1512#issuecomment-254262959 But I need say what I don't used it before.

And if you don't use CLI, then may try set options in webpack config for build css code from scss, for example. Just use require() for your styling file. Read more here (in notice block) https://angular.io/docs/ts/latest/guide/component-styles.html#!#style-urls-in-metadata

Brnaby answered 5/5, 2017 at 21:49 Comment(0)
I
0

I just released postcss-angular, a custom postcss syntax extracting styles within Angular components. Especially useful for integrating Stylelint into your codebase.

Inflict answered 6/4, 2023 at 11:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.