Dynamic URLs in CSS/JS

后端 未结 9 912
别跟我提以往
别跟我提以往 2021-02-05 16:14

I\'m splitting up one of my larger apps and introducing a \'cdn\' url to house common objects like CSS, javascript, and images to avoid duplication. What I need to do, though, i

9条回答
  •  长情又很酷
    2021-02-05 16:34

    Well...the solution I came up with was...sorta...hackish, ugly and dumb. But, hell, it worked:

    
    

    This is, as noted, hacky and ugly and could be done far more prettily. But it does, at least, allow you to define specific locations for specific groups of files depending on the host.

提交回复
热议问题