node.js - Angular CLI 1.4.1 , ng always generate spec file and css even default prefix is scss -


i updated angular cli version 1.4.1, after updation created new

project using following command

 f:\projects\mycliproject>ng new flexcss --prefix=cf --skip-install --skip-git  --style=scss --skip-tests 

and when ran below command create new component, saw still generating spec file style file extension css.

please see below output

f:\projects\mycliproject>ng g c textcomp   create src/app/text-comp/text-comp.component.html (28 bytes)   create src/app/text-comp/text-comp.component.spec.ts (643 bytes)   create src/app/text-comp/text-comp.component.ts (280 bytes)   create src/app/text-comp/text-comp.component.css (0 bytes)   update src/app/app.module.ts (406 bytes) 

i don't know whether happening me , or else facing same problem.

i created projects many times re-installed angular cli without clearing npm cache.

here .angular-cli.json

{   "$schema": "./node_modules/@angular/cli/lib/config/schema.json",   "project": {     "name": "mycliproject"   },   "apps": [     {       "root": "src",       "outdir": "dist",       "assets": [         "assets",         "favicon.ico"       ],       "index": "index.html",       "main": "main.ts",       "polyfills": "polyfills.ts",       "test": "test.ts",       "tsconfig": "tsconfig.app.json",       "testtsconfig": "tsconfig.spec.json",       "prefix": "cf",       "styles": [         "styles.scss"       ],       "scripts": [],       "environmentsource": "environments/environment.ts",       "environments": {         "dev": "environments/environment.ts",         "prod": "environments/environment.prod.ts"       }     }   ],   "e2e": {     "protractor": {       "config": "./protractor.conf.js"     }   },   "lint": [     {       "project": "src/tsconfig.app.json"     },     {       "project": "src/tsconfig.spec.json"     },     {       "project": "e2e/tsconfig.e2e.json"     }   ],   "test": {     "karma": {       "config": "./karma.conf.js"     }   },   "defaults": {     "styleext": "scss",     "component": {       "spec":false      }   } } 

here ng version

f:\projects\mycliproject>ng version     _                      _                 ____ _     ___    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | | /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|                |___/ @angular/cli: 1.4.1 node: 8.4.0 os: win32 x64 @angular/animations: 4.3.6 @angular/common: 4.3.6 @angular/compiler: 4.3.6 @angular/core: 4.3.6 @angular/forms: 4.3.6 @angular/http: 4.3.6 @angular/platform-browser: 4.3.6 @angular/platform-browser-dynamic: 4.3.6 @angular/router: 4.3.6 @angular/cli: 1.4.1 @angular/compiler-cli: 4.3.6 @angular/language-service: 4.3.6 typescript: 2.3.4  f:\projects\mycliproject>npm --version 5.3.0 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -