saguijs / sagui

:monkey: Front-end tooling in a single dependency
http://sagui.js.org/
MIT License
669 stars 32 forks source link

Ability to integrate with storybook #414

Open sergeyevstifeev opened 6 years ago

sergeyevstifeev commented 6 years ago

It would be amazing if sagui provided a way to integrate with storybook. For this, webpack configuration has to be exposed by sagui. So that something like this would be possible in storybook webpack.config:


module.exports = (baseConfig, env) => {
  const webpackConfig = saguiConfig.webpackConfig // missing
  const config = genDefaultConfig(baseConfig, env)

  config.devtool = webpackConfig.devtool
  config.resolve.extensions = webpackConfig.resolve.extensions
  config.module.rules = webpackConfig.module.loaders

  ...
  return config
}
Kadrei commented 6 years ago

Seems related to https://github.com/saguijs/sagui/issues/403