summaryrefslogtreecommitdiff
path: root/storybook/config/preview.js
diff options
context:
space:
mode:
Diffstat (limited to 'storybook/config/preview.js')
-rw-r--r--storybook/config/preview.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/storybook/config/preview.js b/storybook/config/preview.js
index a372aea68ad..4f496665de6 100644
--- a/storybook/config/preview.js
+++ b/storybook/config/preview.js
@@ -1,7 +1,15 @@
+// eslint-disable-next-line import/no-extraneous-dependencies
+import Vue from 'vue';
+import translateMixin from '../../app/assets/javascripts/vue_shared/translate';
+
const stylesheetsRequireCtx = require.context(
'../../app/assets/stylesheets',
true,
- /application\.scss$/,
+ /(application|application_utilities)\.scss$/,
);
+window.gon = {};
+translateMixin(Vue);
+
stylesheetsRequireCtx('./application.scss');
+stylesheetsRequireCtx('./application_utilities.scss');