How to use CSS StyleSheet among projects?

I am looking for advice on web architecture: I would like to know how to share shared files, for example. styles among web applications that span virtual directories and many developers, as opposed to having redundant files in every project? What are some guidelines?

+3
source share
3 answers

It's a little hard to say without knowing more about your web application.

First, are you sure you really want to do this? One of your “many developers” can change the stylesheet, expecting it to affect only one application and affect others. Things can turn out to be even more messy when you need to create stylesheets for each application that override things in general, etc. I would consider these potential potential side effects before continuing this.

, - <link> @import. , "". , , - http://shared.whatever.com/css/styles.css.

+3

. SourceGear Vault, .

( css, dll ) , , , . , , , .

+2

You can create another virtual directory containing shared / shared files, and other web applications can access them.

0
source

Source: https://habr.com/ru/post/1705686/


All Articles