Skipping remote @import of "https://fonts.googleapis.com/ removes remote import from result
See original GitHub issueEnvironment
- clean-css version - 4.1.3
- node.js version - 6.10.2
- operating system: Mac OS Sierra 10.12.3
Configuration options
Using along with grunt-contrib-cssmin
cssmin: {
options: {
tidyAtRules: false
},
styles: {
files: {
'<%= less.compileFile %>': ['<%= vendor_files.css %>', '<%= less.compileFile %>']
}
}
}
Tried to use options: tidyAtRules: false; inline: false; inline: [‘local’]; inline: [‘local’, ‘remote’, ‘!fonts.googleapis.com’].
Input CSS
Concatenation of a dozen of vendor css files and main app file (compiled from less). Vendor files should be before main css. Main file is started with:
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,700,900,900italic,700italic,400italic&subset=latin);@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,700,600italic);
Actual output CSS
Minified concatenation of files without @import rules.
Expected output CSS
Minified concatenation of files with @import rules at the top of the file.
If I change files order: main file before vendors, @import rules become at the top in the source and remains in the result. Looks like them are deleted from result during concatenation.
UPD. Rechecked it with previous concatenation: the same issue. @import rules in the middle of the file just were removed.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16
Top GitHub Comments
It DOESN’t WORK, the quality of the PLUGIN IS just TERRIBLE, it’S been 3 years, and during this time the developer has not been able to fix it!
@import url(“https://fonts.googleapis.com/css?family=Open+Sans:300,300 и,400,400 и,600,600 i,700,700 i,800,800 i|PT+Sans:400,700&subset=cyrillic-ext”);
Same same here! It’s a shame that the bug still hasn’t been fixed.