Webpack loader to automatically require any resources related to the required one