In Bumpers our react components are actually split into 3 different directories
Isn’t our code just the *BEST* 🙄
fat
1.7K65

Webpack tip: add `modulesDirectories: [‘src’, ‘node_modules’]` to your resolve option in your Webpack config then you can have cleaner imports like import Audio from ‘container/audio’. Just ran into this on my own project and it helped importing a bunch of components tremendously.

Like what you read? Give Travis Arnold a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.