mirror of
https://github.com/bendtherules/react-vis-gridarea.git
synced 2026-08-18 13:51:59 +00:00
Add storybook and babel-preset-react
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /.stories.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
||||
@@ -0,0 +1,18 @@
|
||||
// you can use this file to add your custom webpack plugins, loaders and anything you like.
|
||||
// This is just the basic way to add additional webpack configurations.
|
||||
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
|
||||
|
||||
// IMPORTANT
|
||||
// When you add this file, we won't add the default configurations which is similar
|
||||
// to "React Create App". This only has babel loader to load JavaScript.
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
// your custom plugins
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
// add your custom rules.
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user