How do you install/configure datatables using webpack-encore?

How do you install/configure datatables using webpack-encore?

tacman1123tacman1123 Posts: 181Questions: 41Answers: 1

I've done 'yarn add datatables.net', and I can see that it's loading, but the css isn't loading.

I'm sure it's a very basic configuration issue related to webpack.

Thanks!

Answers

  • tacman1123tacman1123 Posts: 181Questions: 41Answers: 1

    Ah, I think I see now -- you need the bootstrap version to get the css:

    require('datatables.net-bs');

    Still, webpack-specific documentation on the installation page would be welcome!

This discussion has been closed.