Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.2.2
node: 6.11.0
os: linux x64
Repro steps.
- Create project with less styles
ng new [NAME] --style=less
- Create
styles/variables.less directory in src folder
- Update styles config in
.angular-cli.json
"styles": [
"styles/variables.less"
],
"stylePreprocessorOptions": {
"includePaths": [
"styles"
]
},
- Import variables in component styles
@import 'variables';
div {
color: @text-color;
}
The log given by the failure.
ERROR in ./src/app/app.component.less
Module build failed:
@import 'variables';
^
Can't resolve './variables.less' in '/home/user/Desktop/ng-less/src/app'
in /home/user/Desktop/ng-less/src/app/app.component.less (line 1, column 0)
@ ./src/app/app.component.ts 18:17-48
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4242 ./src/main.ts
Desired functionality.
includePaths should work like less paths option
Mention any other details that might be useful.
The steps were reproduced with scss styles and it worked correctly
Bug Report or Feature Request (mark with an
x)Versions.
@angular/cli: 1.2.2
node: 6.11.0
os: linux x64
Repro steps.
ng new [NAME] --style=lessstyles/variables.lessdirectory insrcfolder.angular-cli.jsonThe log given by the failure.
Desired functionality.
includePathsshould work like lesspathsoptionMention any other details that might be useful.
The steps were reproduced with
scssstyles and it worked correctly