不知何故,样式部分被忽略,使用angular-cli创建一个新项目。
ng new sassy-project --style=sass
在此之后,创建新组件仍会创建.css
个文件而不会创建scss
。
稍后再次手动更改,使用ng set defaults.styleExt scss
也不会更改它,但会引发错误抱怨styleExt is not a known property.
即使添加该属性也无法提供帮助。
整个日志:
$ ng set defaults.styleExt scss
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
styleExt is not a known property.
Error: styleExt is not a known property.
版本
$ ng -v
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 0.0.39
node: 5.3.0
os: darwin x64