How to include materialize-css npm package with webpack

In this case, unlike with yeticss, you need to go in and require the specific files, rather than just the package name, thus:

import 'materialize-css/dist/css/materialize.min.css';
import 'materialize-css/dist/js/materialize.min';

In my case I'm using create-react-app, and I was able to execute:

yarn add materialize-css

And then in my index.js (top level react file):

import '../node_modules/materialize-css/dist/css/materialize.min.css';
import '../node_modules/materialize-css/dist/js/materialize.min';