Skip to content

Commit

Permalink
Merge pull request #25038 from kylemeenehan/docs/webpack
Browse files Browse the repository at this point in the history
Docs: Make webpackFinal consistent across docs
  • Loading branch information
jonniebigodes authored Dec 5, 2023
2 parents e8fb099 + 52e1d6e commit 43d6dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/snippets/common/main-config-webpack-final.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
framework: '@storybook/your-framework',
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
async webpackFinal(config, { configType }) {
webpackFinal: async (config, { configType }) => {
if (configType === 'DEVELOPMENT') {
// Modify config for development
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/main-config-webpack-final.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
framework: '@storybook/your-framework',
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
async webpackFinal(config, { configType }) {
webpackFinal: async (config, { configType }) => {
if (configType === 'DEVELOPMENT') {
// Modify config for development
}
Expand Down

0 comments on commit 43d6dd3

Please sign in to comment.