css - How to parametrize the host in style content references? -
what simplest way set parametric host in 1 or several css style sheets, static content images?
by parametric host, mean having host define somewhere else, while path standing, host definition can changed different levels of deployment.
while trivial javascript included images, , while <base> url provided html, don't know how achieve same result style assets.
notes:
- the question standard css, without preprocessors
- using relative paths not work, since style sheets need loaded different domains
actually, found out using relative paths work, since relative uris computed position of style sheet, not serving page (see https://developer.mozilla.org/en-us/docs/css/uri)
in case, then, best thing have relative uris, , have assets deployed style sheet
Comments
Post a Comment