Can CSS files be automatically added to the require module of the Webpack?

  node.js, question
var $ = require('jquery');
 var Simditor = require('simditor');
 require('./../../../lib/simditor/simditor.css');

For example, in the editor Simditor, all JS files can be requested and packaged with one click, but css has to add its own path, which is very complicated.

Is there any good solution?

You can stay atsimditorAdd

require('./simditor/simditor.css');

My plan is to require my own related resources in each module.
Then in otherrequireWhen it does, it loads its related resources, which is called dependency chain.