question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature parity to angular-cli: `stylePreprocessorOptions.includePaths`

See original GitHub issue

Type 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mlc-mlapiscommented, Jan 17, 2018

@picheli20 … it is not directly joined with CLI, ng-packagr has to work as a standalone tool.

0reactions
github-actions[bot]commented, Jun 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found