michaelwayman / node-sass-chokidar

A thin wrapper around node-sass to replicate the --watch using chokidar instead of Gaze
MIT License
291 stars 34 forks source link

omitted asterisk from "&:not(*:root)" at build #60

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, I want to differentiate between Chrome and all other browsers. So I use this hack as a css selector: &:not(*:root) { content here }

It works in dev (localhost), but not in prod (build), when I look in the css I see Chokidar has omitted the '*' from the selector: &:not(:root).

Please help me to avoid this behavior.

michaelwayman commented 6 years ago

This is not the correct way to go about this, instead you should use the sass features to be all browser compliant. Look at the sass website and mixing for examples