chore(dsfr): only load dsfr js we use
This commit is contained in:
parent
bb89c03679
commit
634d78e369
2 changed files with 18 additions and 1 deletions
|
@ -3,8 +3,8 @@ import Rails from '@rails/ujs';
|
|||
import * as ActiveStorage from '@rails/activestorage';
|
||||
import * as Turbo from '@hotwired/turbo';
|
||||
import { Application } from '@hotwired/stimulus';
|
||||
import '@gouvfr/dsfr/dist/dsfr.module.js';
|
||||
|
||||
import '../shared/dsfr';
|
||||
import '../shared/activestorage/ujs';
|
||||
import '../shared/safari-11-empty-file-workaround';
|
||||
import '../shared/toggle-target';
|
||||
|
|
17
app/javascript/shared/dsfr.ts
Normal file
17
app/javascript/shared/dsfr.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import '@gouvfr/dsfr/dist/core/core.module';
|
||||
import '@gouvfr/dsfr/dist/scheme/scheme.module';
|
||||
|
||||
import '@gouvfr/dsfr/dist/component/toggle/toggle.module';
|
||||
import '@gouvfr/dsfr/dist/component/breadcrumb/breadcrumb.module';
|
||||
import '@gouvfr/dsfr/dist/component/modal/modal.module';
|
||||
import '@gouvfr/dsfr/dist/component/navigation/navigation.module';
|
||||
import '@gouvfr/dsfr/dist/component/segmented/segmented.module';
|
||||
import '@gouvfr/dsfr/dist/component/table/table.module';
|
||||
import '@gouvfr/dsfr/dist/component/tile/tile.module';
|
||||
import '@gouvfr/dsfr/dist/component/card/card.module';
|
||||
import '@gouvfr/dsfr/dist/component/header/header.module';
|
||||
import '@gouvfr/dsfr/dist/component/sidemenu/sidemenu.module';
|
||||
import '@gouvfr/dsfr/dist/component/password/password.module';
|
||||
import '@gouvfr/dsfr/dist/component/accordion/accordion.module';
|
||||
import '@gouvfr/dsfr/dist/component/tab/tab.module';
|
||||
import '@gouvfr/dsfr/dist/component/tooltip/tooltip.module';
|
Loading…
Reference in a new issue