DEV Community

Discussion on: storybook + tailwind + nuxt one webpack config

Collapse
 
manuelehrenfeld profile image
Manuel Ehrenfeld • Edited

In case this would be useful to someone else, I got it working by manually configuring the source loader:

{
test: /.(stories|story).[tj]sx?$/,
loader: require.resolve('@storybook/source-loader'),
exclude: [/node_modules/],
enforce: 'pre',
}
github.com/storybookjs/storybook/b...

Collapse
 
flozero profile image
florent giraud

do you have a repo example you can share ? I am currently having the same bug you had i think ^^. Their docs are new and not so well documented on this...

Can tell us the version you are using too? Thank's :) Because there are some bugs with next version apparently

Collapse
 
manuelehrenfeld profile image
Manuel Ehrenfeld

Hi Florent, after some issues I decided to keep two independent webpack configurations. Here you can check my implementation:
github.com/nonlinearcom/storybook-...

Thread Thread
 
flozero profile image
florent giraud

Can you describe what was your issue on it ? And thank's for the repo i will check