Instead of just adding some loaders during the preview build, I copied the Webpack settings from the Storybook docs and put them in the module exports in main.js
To test, I have included a very basic story for Card component that uses USWDS classes. Just pull the code, install node modules and run npm run storybook and checkout the Card component.
Instead of just adding some loaders during the preview build, I copied the Webpack settings from the Storybook docs and put them in the module exports in main.js
To test, I have included a very basic story for Card component that uses USWDS classes. Just pull the code, install node modules and run
npm run storybook
and checkout the Card component.