-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular CLI 6.0.0 support for stylePreprocessorOptions #10473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
stylePreprocessorOptions is still supported. You will have to manually update the newly generated angular.json though. Its new place is inside the "options" block of the json.
Note the changed path. I agree that it would be nice if ng update did this automatically. |
Thanks @lehoffma ! I already tried that but I failed using a wrong path ("src/styles") instead of "../src/styles/". Anyway, yeah it could be automatically... |
Following is working:
But I found a bug: |
One thing I found by myself and that can prevent a lot of headache: For tests running, you must include the same I was wondering whether it is a bug or the expected behaviour there. |
I'm having trouble where my tests can't find my sass imports. It's a pretty simple
And my angular.json looks like this for testing
the build part of the angular.json works fine for localhost and looks like this
Not sure why the |
@dethstrobe That seems fine, compare the hole file to this one. Maybe you find something wrong... |
Try an import similar to the following: |
Thanks @clydin, That did the trick. Guess I just misunderstood how the import syntax was working. |
I still have a problem.
|
this worked out for me in angular cli 6, angular 6.0
|
It works fine also with universal
|
For me trying to use stylePreprocessorOptions in a multiproject doesn't work ( In my angular.json I have in bootstrap4xSass/architect/build/options
In my project I have
In a component scss of my 'bootstrap4xSass' project I have
and the error I have is:
That means that this approach doesn't work in a multi project |
Works fine Angular CLI: 6.1.2, Angular: 6.1.1
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
6.0.0-rc.6
. Runng update
and thenng update @angular/cli --migrate-only --from=1
Observed behavior
Desired behavior
Support for stylePreprocessorOptions or fix ng update because it removes that part from angular.json file.
The text was updated successfully, but these errors were encountered: