You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bodybackground-color: green
:host
background: #000
sass output
Error: Properties are only allowed within rules, directives, mixin includes, or other properties.
If ":host" should be a selector, use "\:host" instead.
on line 3 of test.sass
Use --trace for backtrace.
gulp-sass output
body {
background-color: green; }
:host {
background:#000; }
Test2 - Escaping the selector as suggested by sass
test.sass
bodybackground-color: green
\:host
background: #000
sass output
body {
background-color: green; }
:host {
background:#000; }
gulp-sass output
body {
background-color: green; }
\:host {
background:#000; }
The text was updated successfully, but these errors were encountered:
Originally posted this at dlmanning/gulp-sass#464
And got advised to open the issue here.
Consider the fact that Angular uses :host as a component selector
https://angular.io/docs/ts/latest/guide/component-styles.html
I am using a simple gulp task like
Test1
test.sass
sass output
gulp-sass output
Test2 - Escaping the selector as suggested by sass
test.sass
sass output
gulp-sass output
The text was updated successfully, but these errors were encountered: