I'd like to have multiple builds of application where each build would represent specified theme
.
npm build monokai
would generate monokai theme. Project structure would be like this:
/themes/default/component.jsx
/themes/monokai/component.jsx
Basically it would come down to this /themes/{themeName}/component.jsx
. Of course there would be whole folder structure in {themeName}
subdirectory, but every theme would have same folder structure, just different html/css.
Is there a way to achieve this with webpack
? It doesn't necessarily have to work via npm build {themeName}
.