Skip to content

Commit

Permalink
docs: update ./storybook/main.js documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Renato Moor committed Aug 31, 2022
1 parent e3e006a commit e204d88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- Vue 3.0+
- Tailwind CSS
- Storybook
- Storybook builder vite

## Install package

Expand All @@ -21,8 +20,10 @@ npm install storybook-tailwind-foundations

## Adapt `./storybook/main.js`
```js
const path = require('path');
const tailwindConfigPath = path.join(__dirname, '../tailwind.config.js'); // or your own config file
require('storybook-tailwind-foundations/initialize.js')
.default(resolve('../tailwind.config.js')); // or your own config file
.default(tailwindConfigPath);

module.exports = {
// ...
Expand Down
4 changes: 3 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ npm install storybook-tailwind-fundations

## Adapt `./storybook/main.js`
```js
const path = require('path');
const tailwindConfigPath = path.join(__dirname, '../tailwind.config.js'); // or your own config file
require('storybook-tailwind-foundations/initialize.js')
.default(resolve('../tailwind.config.js')); // or your own config file
.default(tailwindConfigPath);

module.exports = {
// ...
Expand Down

0 comments on commit e204d88

Please sign in to comment.