We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 784ded5 + 8212ebf commit 6508364Copy full SHA for 6508364
1 file changed
frontend/src/tours/Tours.js
@@ -6,11 +6,16 @@ import Product from '../services/product.js'
6
7
// eslint-disable-next-line n/no-extraneous-import
8
import 'shepherd.js/dist/css/shepherd.css'
9
-import './tour-theme.scss'
10
11
import store from '../store/index.js'
12
13
function create (id, tourJson, onCloseHook) {
+ // Load tour styles at point-of-use
14
+ // NOTE: Due to sass loader settings, a static import does not work since there are no explicit
15
+ // references to the styles in the codebase. This dynamic import ensures the styles are
16
+ // included in the build and applied when the tour is used.
17
+ import('./tour-theme.scss').catch(() => {})
18
+
19
store.dispatch('ux/tours/activateTour', id)
20
Product.capture('ff-tour-start', {
21
tour_id: id
0 commit comments