In use less angular 6
new project
ng new [appname] --style less
Existing projects
Modify *.css
documents and references of the suffix less
and angular.json
set the following file
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "ngTest": { "root": "", "sourceRoot": "src", "projectType": "application", "prefix": "app", "schematics": { "@schematics/angular:component": { "styleext": "less" } } ...... }