Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use PostCSS in angular cli

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.

like image 947
cristianqr Avatar asked Apr 27 '17 00:04

cristianqr


People also ask

Does angular use Postcss?

Angular CLI does use postcss on stylesheets and it comes out of the box which doesn't require any configuration other than configuring the browsers that you'd like to support in the browserslist configuration RC file.

What is SaaS in angular?

Introduction. SaaS Theme is an Angular admin template, which is based on the Angular 10.0. 2, NgRx and ready-to-use REST API. SaaS Theme uses unique UI components, created for Angular applications, which allows it to be easily customized so that you can build your own app quickly.


1 Answers

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

like image 124
Oleg Postoev Avatar answered Sep 21 '22 12:09

Oleg Postoev