Automattic / nginx-http-concat

WordPress plugin to perform CSS and JavaScript concatenation of individual script files into one resource request.
GNU General Public License v2.0
115 stars 32 forks source link

support conditional @import statements #66

Closed trepmal closed 1 year ago

trepmal commented 2 years ago

Imports support conditionals as described here: https://developer.mozilla.org/en-US/docs/Web/CSS/@import Media types listed here: https://www.w3.org/TR/mediaqueries-4/#media-types

Examples from Mozilla:

@import 'custom.css';
@import url("fineprint.css") print;
@import "common.css" screen;
@import url('landscape.css') screen and (orientation:landscape);

https://regex101.com/r/wuP3hZ/2

rebeccahum commented 2 years ago

@trepmal Do you mind resolving the merge conflicts so we can get this in?