mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
c8acf12d4f
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7635 GitOrigin-RevId: 5f4b24d30d39a2cf2c8eb4a0d0ccc60161389303
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import * as webpack from 'webpack';
|
|
import { merge } from 'webpack-merge';
|
|
|
|
export default {
|
|
core: {},
|
|
stories: [],
|
|
addons: [
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-interactions',
|
|
'storybook-dark-mode/register',
|
|
'storybook-addon-console-env',
|
|
],
|
|
webpackFinal: async (config: any) => {
|
|
return merge(config, {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
__CLIENT__: 'true',
|
|
__SERVER__: false,
|
|
__DEVELOPMENT__: true,
|
|
__DEVTOOLS__: true, // <-------- DISABLE redux-devtools HERE
|
|
CONSOLE_ASSET_VERSION: Date.now().toString(),
|
|
}),
|
|
// un comment this to test out the circular deps. Left here since it can be tricky to configure
|
|
],
|
|
resolve: {
|
|
fallback: {
|
|
fs: false,
|
|
os: false,
|
|
http: false,
|
|
path: require.resolve('path-browserify'),
|
|
crypto: false,
|
|
util: require.resolve('util/'),
|
|
stream: false,
|
|
},
|
|
},
|
|
});
|
|
},
|
|
};
|