I have webpack config with multiple entries:
entry: {
'js/app': ['./css/app/style.scss', './js/app/index.js'],
'js/vendor': ['./js/vendor/index.js', './css/vendor/index.css'],
'js/snippets': './js/snippets/index.js'
},
and I don't want to hardcode all this paths in karma config. Just include webpack config and connect all the entries from there:
var webpackConfig = require('./webpack.config');
...
...
files: webpackConfig.entry,
but file
option expect to have an array of strings.
Is there any ready solution for it? Not to convert object to array manually.