Need to replace cdn url with offline css files for minification

Need to replace cdn url with offline css files for minification

bzibalmabzibalma Posts: 1Questions: 1Answers: 0

I am planning on minifying the css in my project and I am trying to remove the files from cdn and replace them with offline files

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css"/>
<link href="https://cdn.datatables.net/responsive/2.0.0/css/responsive.bootstrap.min.css" rel="stylesheet"/>

The first url also happens to include twitter-bootstrap which I have already included on the page. I have tried to replace the cdn styles with the following:

<link rel="stylesheet" href="css/jquery.dataTables.css"/>
<link rel="stylesheet" href="css/dataTables.bootstrap.css"/>
<link rel="stylesheet" href="css/responsive.bootstrap.css"/>

However I find that the styles are not applied correctly. Is this the appropriate styles to include or should I add any other css files.

Answers

  • allanallan Posts: 63,262Questions: 1Answers: 10,423 Site admin

    I would suggest using the download builder to create the package you need for DataTables. It also has the option to download the files locally.

    Allan

This discussion has been closed.