Generate pattern library for components
This commit is contained in:
parent
d46773cc94
commit
83e13c8b36
11 changed files with 193 additions and 4 deletions
14
styleguide.config.js
Normal file
14
styleguide.config.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const path = require('path');
|
||||
module.exports = {
|
||||
title: 'React CSV pattern library',
|
||||
components: './src/components/**/*.js',
|
||||
styleguideDir: 'docs',
|
||||
updateWebpackConfig: function(webpackConfig) {
|
||||
// Your source files folder or array of folders, should not include node_modules
|
||||
const dir = path.join(__dirname, 'src');
|
||||
webpackConfig.module.loaders.push(
|
||||
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
|
||||
);
|
||||
return webpackConfig;
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue