Skip to content

Commit

Permalink
fix: storybook for drupal theme
Browse files Browse the repository at this point in the history
  • Loading branch information
emircanerkul committed Sep 16, 2022
1 parent bd6f174 commit 79f34c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Twig from 'twig';
import { setupTwig } from './setupTwig';

// GLOBAL CSS
import '../components/style.scss';
import '../components/global.scss';

// If in a Drupal project, it's recommended to import a symlinked version of drupal.js.
import './_drupal.js';
Expand Down
4 changes: 4 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ module.exports = async ({ config }) => {
sassOptions: {
importer: globImporter(),
},
additionalData: `@import "${path.resolve(
__dirname,
'../components/_import.scss',
)}";`,
},
},
],
Expand Down

0 comments on commit 79f34c5

Please sign in to comment.