diff --git a/.circleci/config.yml b/.circleci/config.yml index b3ad19f..f1a376e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,8 @@ version: 2 jobs: build: - docker: &docker_image - - image: circleci/node:7.10 + docker: + - image: cimg/node:16.11.1 steps: - checkout diff --git a/.gitignore b/.gitignore index b8b5ad9..91fd569 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,20 @@ coverage .tmp .idea .DS_Store -dist \ No newline at end of file +dist + +# Source: https://github.com/storybookjs/storybook/issues/8972#issuecomment-559164304 + +# Ignore unused language chunks and maps +react-syntax-highlighter_languages_highlight_*.*.bundle.js +react-syntax-highlighter_languages_highlight_*.*.bundle.js.map +vendors~react-syntax-highlighter_languages_highlight_*.*.bundle.js +vendors~react-syntax-highlighter_languages_highlight_*.*.bundle.js.map + +# Unignore the language highlighter chunks storybook uses for MDX stories +!react-syntax-highlighter_languages_highlight_jsx.*.bundle.js.map +!react-syntax-highlighter_languages_highlight_bash.*.bundle.js.map +!react-syntax-highlighter_languages_highlight_css.*.bundle.js.map +!react-syntax-highlighter_languages_highlight_html.*.bundle.js.map +!react-syntax-highlighter_languages_highlight_tsx.*.bundle.js.map +!react-syntax-highlighter_languages_highlight_typescript.*.bundle.js.map diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 49d6121..cd936fb 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -1,11 +1,3 @@ - \ No newline at end of file + diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js deleted file mode 100644 index 1b253df..0000000 --- a/.storybook/webpack.config.js +++ /dev/null @@ -1,53 +0,0 @@ -// 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: [ - { - test: /\.js$/, - use: ['babel-loader'], - exclude: /node_modules/, - }, - { - test: /\.json$/, - use: 'json-loader', - }, - { - test: /\.css$/, - use: ['css', 'sass'], - }, - ], - }, - externals: { - react: 'react', - }, -}; -*/ - -const path = require("path"); - -// Export a function. Accept the base config as the only param. -module.exports = (storybookBaseConfig) => { - // configType 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 - storybookBaseConfig.module.rules.push({ - test: /\.scss$/, - loaders: ["style-loader", "css-loader", "sass-loader"], - include: path.resolve(__dirname, "../") - }); - - // Return the altered config - return storybookBaseConfig; -}; \ No newline at end of file diff --git a/docs/favicon.ico b/docs/favicon.ico index 8c2246a..428500f 100644 Binary files a/docs/favicon.ico and b/docs/favicon.ico differ diff --git a/docs/iframe.html b/docs/iframe.html index 111db67..c947b67 100644 --- a/docs/iframe.html +++ b/docs/iframe.html @@ -1,22 +1,7 @@ - - -
- - - -Sorry, but you either have no stories or none are selected somehow.
-
-
-
-Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.