In use less angular 8

In use less angular 6

new project
ng new [appname] --style less
Existing projects
Modify *.cssdocuments and references of the suffix lessand angular.jsonset 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"
        }
      }
  ......
}

  

Guess you like

Origin www.cnblogs.com/reaf/p/11229301.html