I am creating an application with theme requirements that can only be determined at runtime. During assembly, theme variables for all themes are possible.
Is it possible to get webpack to build node modules - in this case bootstrap - with files of different variables? I think during the build I would like for him to create several bootstrap versions / themes. Then at runtime, I could reference the correct css file based on some prefix.
eg.
theme1.bootstrap.css theme2.bootstrap.css theme3.bootstrap.css
I am using bootstrap 4, with webpack 2.
Is it possible with webpack and how can I achieve this?
source share