saguijs / sagui

:monkey: Front-end tooling in a single dependency

Home Page:http://sagui.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to integrate with storybook

sergeyevstifeev opened this issue · comments

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
}

Seems related to #403