Is it possible in webpack.config.js to setup a module in a way that any needed css will automatically be loaded whenever the module is required?
So if I load bootstrap for example, also the needed css file(s) will be loaded by webpack without me having to type the extra require line myself everytime I require it.
Example:
require('bootstrap'); // This should load bootstrap.js as well as bootstrap.css