perf(dsfr): only include what alert and its dependencies as refered in README of each components
This commit is contained in:
parent
17d8c7a371
commit
a2311b1b75
2 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,7 @@ class Dsfr::AlertComponent < ApplicationComponent
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def initialize(state:, title:)
|
||||
@state = state
|
||||
@title = title
|
||||
|
@ -20,5 +21,4 @@ class Dsfr::AlertComponent < ApplicationComponent
|
|||
end
|
||||
|
||||
attr_reader :state, :title, :block
|
||||
|
||||
end
|
||||
|
|
|
@ -68,4 +68,6 @@ window.DS = window.DS || DS;
|
|||
import('../shared/track/matomo');
|
||||
import('../shared/track/sentry');
|
||||
|
||||
import "../../../node_modules/@gouvfr/dsfr/dist/dsfr.min.css";
|
||||
import '../../../node_modules/@gouvfr/dsfr/dist/core/core.css';
|
||||
import '../../../node_modules/@gouvfr/dsfr/dist/component/button/button.css';
|
||||
import '../../../node_modules/@gouvfr/dsfr/dist/component/alert/alert.css';
|
||||
|
|
Loading…
Reference in a new issue