Npm datatables.net support

Npm datatables.net support

sparkstersajjadsparkstersajjad Posts: 10Questions: 4Answers: 0

this npm("npm install --save datatables.net') is providing only js files. css files are not coming. I have downloade and added manually and it's working locally but when it's come to deployment in live server we are giving 'npm install' that time it's not finding since it's added manually. what is the solution for this?

let me know if any other details are required.

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    this npm("npm install --save datatables.net') is providing only js files. css files are not coming.

    Correct and this is intentional. Since we support multiple styling frameworks you also need to install the package for the styling framework you want. E.g. for Bootstrap 4:

    npm install --save datatables.net-bs4
    

    This is documented on the npm install page and also shown in the download builder when you select the npm tab at the bottom of the page.

    Allan

This discussion has been closed.