Feature parity to angular-cli: `stylePreprocessorOptions.includePaths`
See original GitHub issueType of Issue
[ ] Bug Report
[x ] Feature Request
Description
First let me say a big thank you for your work!
Angular-cli allows to add include-paths for the style-preprocessor in use:
"stylePreprocessorOptions": {
"includePaths": [
"styles"
]
},
In the scss / less files, you don’t have to provide the complete relative path to an import.
How To Reproduce
Add the includePath to angular-cli.json and add an import to a file in your styles-folder without specifying the complete relative path.
Expected Behaviour
As angular-cli itself resolves the import correctly, ng-packagr should do it, too.
Version Information
ng-packagr: v1.6.0
node: v8.7.0
@angular: v5.0.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Angular-CLI Sass - Stack Overflow
Using stylePreprocessorOptions is an option and I believe this was an old workaround / feature. Now you can just use the tilde ~...
Read more >stylePreprocessorOptions includePaths in angular-cli.json ...
I gather I can mark style-paths as a Resources Root, but obviously it would be better if IntelliJ could pick it up from...
Read more >How to simplify and clean your sass import with Angular.json
Go to angular.json file, under styles add stylePreprocessorOptions object with includePaths option and define all paths available in an ...
Read more >5 Useful Angular CLI Tips For Beginners | by Nithin C Valappil
And instead of importing this global file in each components, we can use 'includePaths' of 'stylePreprocessorOptions' config in angular.json ...
Read more >Angular: You May Have Missed This - Rōnin Consulting
The stylePreprocessorOptions property in your angular.json. ... More than likely you've had some experience with the Angular CLI if you've worked with any ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@picheli20 … it is not directly joined with CLI,
ng-packagr
has to work as a standalone tool.This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
This action has been performed automatically by a bot.