modules: ['src', 'node_modules'],
extensions: ['.js', '.jsx', '.scss'],
One neat thing with the resolve config that you can pass is `modules`. This will allow you to import directly from a path within your modules.
So say you were in my-project/src/components/header/title.jsx...
// to import a utility we could do
import myUtility from '../../utils/myUtility
import myUtility from 'utils/myUtility'
It's pretty handy, especially as a project grows and a component might have to be moved elsewhere - it means you then wont have to go updating all the paths for relative imports.