Closed berarma closed 8 years ago
@import rules with media queries are ignored when checking for changes in CSS files. Examples of such rules:
@import url("fineprint.css") print; @import url("bluish.css") projection, tv; @import "common.css" screen, projection; @import url('landscape.css') screen and (orientation:landscape);
I'm testing a fix using the following modified regular expression in CssUtils:
const IMPORT_PATTERN = '/^\s*@import\s*(?:(?:([\'"])([^\'"]+)\\1)|(?:url\(([\'"])([^\'"]+)\\3\)))(\s.*)?;/m';
I guess this should be enough.
Thanks! I'll get that fixed up.
Pull request up now.
Thanks!
@import rules with media queries are ignored when checking for changes in CSS files. Examples of such rules:
I'm testing a fix using the following modified regular expression in CssUtils:
I guess this should be enough.