Skip to content

Commit

Permalink
use better names
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed May 14, 2021
1 parent f7ebf5a commit b646e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = ({config}) => {
};

// Necessary to overwrite the values in the existing DefinePlugin hardcoded to the Config staging values
const definePluginId = config.plugins.findIndex(p => p.constructor.name === 'DefinePlugin');
config.plugins[definePluginId].definitions.__REACT_WEB_CONFIG__ = JSON.stringify(env);
const definePluginIndex = config.plugins.findIndex(plugin => plugin.constructor.name === 'DefinePlugin');
config.plugins[definePluginIndex].definitions.__REACT_WEB_CONFIG__ = JSON.stringify(env);
config.resolve.extensions.push('.web.js', '.website.js');
return config;
};

0 comments on commit b646e23

Please sign in to comment.