Skip to content

Commit 8aff97d

Browse files
committed
feat: ✨ Utilise le bon mode pour le JS du DSFR
1 parent e72ba68 commit 8aff97d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './init-dsfr.js'
12
import '@gouvfr/dsfr/dist/core/core.module.js'
23
import * as components from './components/index.js'
34
import VIcon from './icons.js'

src/init-dsfr.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
if (typeof window !== 'undefined') {
2+
window.dsfr = {
3+
verbose: false,
4+
mode: 'vue',
5+
}
6+
}

0 commit comments

Comments
 (0)