In my project I want to provide branding feature. For this purpose I'm going to include branding style in runtime. But I can't find the method how to do it via webpack. I want to write something like this:
require.ensure(['./branding/**/style.scss'], ()=> {
require(`./branding/${brandingName}/style.scss`);
});
Can anyone help me to cope with it?
I've also tryied bundle-loader
it doesn't works for me too
require('bundle!../branding/' + branding + '.scss')(()=> {});