Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to add customised style sheet

$
0
0

Hi

I am new in asp.net mvc core 2 and I am doing a new project.   I have copied the following  css file and js file in the folder  bootstrap\dist \css and  bootstrap\dist \js. 

In which places I have to give the reference to this style sheet an java script in  my project folder. I have given the reference to the style sheet  in my layout.cshtml file as

<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<link href="~/css/bootstrap.css" rel="stylesheet" />
<link href="~/css/style.css" rel="stylesheet" />

<div></div> <div><script src="js/jquery.min.js"></script></div> <div>  <script src="js/popper.min.js"></script></div> <div>  <script src="js/bootstrap.min.js"></script></div> <div>  <script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.2.0/ekko-lightbox.js"></script></div><div>  <script src="js/main.js"></script></div> <div></div> <div>But my question is, the above  stylesheet and classes , do I need to give the reference to bundle.config. Please can you let me know</div><div>[
{
"outputFileName": "wwwroot/css/site.min.css",
// An array of relative input file paths. Globbing patterns supported
"inputFiles": [
"wwwroot/css/site.css"
]
},
{
"outputFileName": "wwwroot/js/site.min.js",
"inputFiles": [
"wwwroot/js/site.js"
],
// Optionally specify minification options
"minify": {
"enabled": true,
"renameLocals": true
},
// Optionally generate .map file
"sourceMap": false
}
]
</div>

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>