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.










share|improve this question


















  • 2




    developer.mozilla.org/en-US/docs/Web/HTML/Element/link
    – Gerard
    Nov 5 at 7:10















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.










share|improve this question


















  • 2




    developer.mozilla.org/en-US/docs/Web/HTML/Element/link
    – Gerard
    Nov 5 at 7:10













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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












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">





share|improve this answer










New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • 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













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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
































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">





share|improve this answer










New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • 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

















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">





share|improve this answer










New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • 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















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">





share|improve this answer










New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









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">






share|improve this answer










New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited Nov 5 at 11:25





















New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Nov 5 at 10:03









Nico

695




695




New contributor




Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Nico is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 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












  • 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




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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




















































































這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini