Skip to content

Commit 70b2e86

Browse files
ChristophWurstskjnldsv
authored andcommitted
Fix bundling of mixins (#330)
1 parent 6f881ae commit 70b2e86

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

webpack.common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ module.exports = {
2626
acc[name] = path.join(__dirname, item);
2727
return acc;
2828
}, {}),
29+
...glob.sync('src/mixins/*/index.js').reduce((acc, item) => {
30+
const name = item.replace('/index.js', '').replace('src/mixins/', 'Mixins/');
31+
acc[name] = path.join(__dirname, item);
32+
return acc;
33+
}, {}),
2934
},
3035
output: {
3136
path: path.resolve(__dirname, './dist'),

0 commit comments

Comments
 (0)