Skip to content

Commit

Permalink
Merge branch 'main' into tobbe-tw-setup-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidprice authored Jan 19, 2021
2 parents 7e8ddfc + d7e8fd1 commit ab1b722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/config/storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
],
webpackFinal: (sbConfig, { configType }) => {
// configType is 'PRODUCTION' or 'DEVELOPMENT', why shout?
const isEnvProduction = configType?.toLowerCase() === 'production'
const isEnvProduction = configType && configType.toLowerCase() === 'production'

const rwConfig = isEnvProduction
? require('../webpack.production')
Expand Down

0 comments on commit ab1b722

Please sign in to comment.