DC
Size: a a a
DC
DC
VV
<template>
<button :class="styles.button">theme {{ theme }}</button>
</template>
<script>
export default {
name: "theme-button",
props: ['theme'],
computed: {
styles: function () {
return require(`./themes/${this.theme}.css`);
}
}
}
</script>
VV
VV
DC
VV
VV
NK
A
NK
A
A
NK
ЕД
L
DC
[…]
вроде нет, я делал это через маппингDC
viewBindings: [
{
template: 'index.pug',
outputFile: 'index.html',
},
{
template: 'services__chatbots.pug',
outputFile: 'services/chatbots/index.html',
},
{
template: 'services__voicebots.pug',
outputFile: 'services/voicebots/index.html',
},
……
]
DC
DC
viewBindings.map((viewBinding) => {
return new HtmlWebpackPlugin({
template: `./src/html/view/${viewBinding.template}`,
filename: viewBinding.outputFile,
….