It is possible to require all stories using like node-glob in the config.js file?
I tried but there something wrong happening when glob tries to access my src path. Maybe I am doing something wrong, but I would like to see this working.
glob('../src/components/**/stories.js', (err, files) => {
files.forEach(file => require(file))
})
Someone has a workaround?
It is possible to require all stories using like node-glob in the
config.jsfile?I tried but there something wrong happening when
globtries to access mysrcpath. Maybe I am doing something wrong, but I would like to see this working.Someone has a workaround?