dev

This section describes all configuration of Modern.js Module related to debugging tools.

storybook

WARNING

Deprecated: This configuration is deprecated and only applicable to Storybook V6. Please see 使用 Storybook to get more info.

storybook.webpack

  • Type: object | Function | undefined
  • Default: undefined
export default {
  dev: {
    storybook: {
      webpack(config) {
        return config;
      },
    },
  },
};

Storybook

Configure Manager App

For the webpack configuration of the Storybook Manager app section, you can configure it by adding the ./config/storybook/main.js file to configure it.

// ./config/storybook/main.js

module.exports = {
  // it controls the Storybook manager app
  managerWebpack: async (config, options) => {
    // update config here
    return config;
  },
};

storybook.webpackChain

  • Type: Function | undefined
  • Default: undefined
export default {
  dev: {
    storybook: {
      webpackChain(chain) {
        return chain;
      },
    },
  },
};