enchoice-fabric-react-lib
Version:
This project was created to integrate Microsoft Fabric React
27 lines (22 loc) • 859 B
JavaScript
/*const path = require('path');
const TSDocgenPlugin = require('react-docgen-typescript-webpack-plugin');
// Export a function. Accept the base config as the only param.
module.exports = ({ config, mode }) => {
// `mode` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.
// Make whatever fine-grained changes you need
config.module.rules.push({
test: /\.(ts|tsx)$/,
include: path.resolve(__dirname, '../src'),
loader: require.resolve('awesome-typescript-loader'),
options: {
configFileName: '.storybook/tsconfig.json'
}
});
config.plugins.push(new TSDocgenPlugin());
config.resolve.extensions.push('.ts', '.tsx');
// Return the altered config
return config;
};
*/