Share css and ts across projects
up vote
0
down vote
favorite
There is a need to share some CSS and TS across multiple Angular projects. Is there a way to do it? Copy-pasting isn't looking so good for that purpose.
css angular typescript share
add a comment |
up vote
0
down vote
favorite
There is a need to share some CSS and TS across multiple Angular projects. Is there a way to do it? Copy-pasting isn't looking so good for that purpose.
css angular typescript share
2
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
There is a need to share some CSS and TS across multiple Angular projects. Is there a way to do it? Copy-pasting isn't looking so good for that purpose.
css angular typescript share
There is a need to share some CSS and TS across multiple Angular projects. Is there a way to do it? Copy-pasting isn't looking so good for that purpose.
css angular typescript share
css angular typescript share
asked Nov 5 at 7:07
Sergey
833316
833316
2
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10
add a comment |
2
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10
2
2
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
For each project you can try to add this in your angular.json. In the Styles part where normally there is other styles from your node package.
"styles": [
"path/to/style/style.scss", // Your custom style
"node_modules/font-awesome/css/font-awesome.css" //exemple of package style
]
EDIT :
If you need to load an external css.
you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request.
<link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
New contributor
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
For each project you can try to add this in your angular.json. In the Styles part where normally there is other styles from your node package.
"styles": [
"path/to/style/style.scss", // Your custom style
"node_modules/font-awesome/css/font-awesome.css" //exemple of package style
]
EDIT :
If you need to load an external css.
you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request.
<link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
New contributor
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
add a comment |
up vote
0
down vote
For each project you can try to add this in your angular.json. In the Styles part where normally there is other styles from your node package.
"styles": [
"path/to/style/style.scss", // Your custom style
"node_modules/font-awesome/css/font-awesome.css" //exemple of package style
]
EDIT :
If you need to load an external css.
you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request.
<link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
New contributor
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
add a comment |
up vote
0
down vote
up vote
0
down vote
For each project you can try to add this in your angular.json. In the Styles part where normally there is other styles from your node package.
"styles": [
"path/to/style/style.scss", // Your custom style
"node_modules/font-awesome/css/font-awesome.css" //exemple of package style
]
EDIT :
If you need to load an external css.
you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request.
<link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
New contributor
For each project you can try to add this in your angular.json. In the Styles part where normally there is other styles from your node package.
"styles": [
"path/to/style/style.scss", // Your custom style
"node_modules/font-awesome/css/font-awesome.css" //exemple of package style
]
EDIT :
If you need to load an external css.
you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request.
<link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
New contributor
edited Nov 5 at 11:25
New contributor
answered Nov 5 at 10:03
Nico
695
695
New contributor
New contributor
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
add a comment |
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
But I need to share them. Meaning they need to be accessible from different computers since it's a team developed applications. Applications are shared via gitlab
– Sergey
Nov 5 at 10:09
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
Okay, well if you have an external css to load, you can use as mentioned in your comment of your first post use "link" in the index.html from your src app folder. For each ng project. Hope it will correspond to your request. <link rel="stylesheet" type="text/css" href="server/with/css/custom.css">
– Nico
Nov 5 at 10:25
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53149777%2fshare-css-and-ts-across-projects%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
developer.mozilla.org/en-US/docs/Web/HTML/Element/link
– Gerard
Nov 5 at 7:10