Skip to content

Commit

Permalink
Configure resolve_assets_in_css_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jan 27, 2022
1 parent 235dfa1 commit eabb79f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
10 changes: 5 additions & 5 deletions app/assets/stylesheets/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
}

&.ico-copy::before {
background-image: url(image-path('ico-copy.svg'));
background-image: url('ico-copy.svg');
}

&.ico-download::before {
background-image: url(image-path('ico-download.svg'));
background-image: url('ico-download.svg');
}

&.ico-refresh::before {
background-image: url(image-path('ico-refresh.svg'));
background-image: url('ico-refresh.svg');
}

&.ico-print::before {
background-image: url(image-path('ico-print.svg'));
background-image: url('ico-print.svg');
}
}

Expand All @@ -33,7 +33,7 @@

&-success {
&::before {
background-image: url(image-path('alert/success.svg'));
background-image: url('alert/success.svg');
content: '';
display: block;
height: $h4;
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
padding: 1rem 1rem 1rem 0;

&::before {
background-image: url(image-path('alert/success.svg'));
background-image: url('alert/success.svg');
background-repeat: no-repeat;
content: '';
display: inline-block;
Expand Down
6 changes: 3 additions & 3 deletions app/assets/stylesheets/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
position: relative;

&.key-badge::before {
background-image: url(image-path('p-key.svg'));
background-image: url('p-key.svg');
background-repeat: no-repeat;
content: '';
height: 60px;
Expand Down Expand Up @@ -88,7 +88,7 @@

.modal-timeout {
&::before {
background-image: url(image-path('clock.svg'));
background-image: url('clock.svg');
}

hr {
Expand All @@ -98,7 +98,7 @@

.modal-warning {
&::before {
background-image: url(image-path('alert/warning-lg.svg'));
background-image: url('alert/warning-lg.svg');
}

hr {
Expand Down
6 changes: 3 additions & 3 deletions app/assets/stylesheets/components/_personal-key.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.key-badge::before {
background-image: url(image-path('p-key.svg'));
background-image: url('p-key.svg');
background-repeat: no-repeat;
content: '';
height: 60px;
Expand Down Expand Up @@ -39,13 +39,13 @@

.bg-pk-box {
background-color: $blue-lightest;
background-image: image-url('personal-key/pkey-block.svg');
background-image: url('personal-key/pkey-block.svg');
background-position: center;
background-repeat: no-repeat;
}

.bg-personal-key {
background: image-url('personal-key/shield.svg');
background: url('personal-key/shield.svg');
background-color: $blue-lightest;
background-position: center 3.3rem;
background-repeat: no-repeat;
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/_phone-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ lg-phone-input {
}

.iti__flag {
background-image: image-url('intl-tel-input/build/img/flags.png');
background-image: url('intl-tel-input/build/img/flags.png');

/* stylelint-disable-next-line media-feature-name-no-vendor-prefix */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
background-image: image-url('intl-tel-input/build/img/[email protected]');
background-image: url('intl-tel-input/build/img/[email protected]');
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/_step-indicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ $step-indicator-pending-color: #a8b6c6;

.step-indicator__step--complete:not(.step-indicator__step--pending)::before {
background-color: color('white');
background-image: url(image-path('alert/success.svg'));
background-image: url('alert/success.svg');
}

.step-indicator__step--pending::before {
background-image: url(image-path('alert/pending.svg'));
background-image: url('alert/pending.svg');
}

.step-indicator__step:not(:last-child)::after {
Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Application < Rails::Application
config.active_record.belongs_to_required_by_default = false
config.active_record.legacy_connection_handling = false
config.assets.unknown_asset_fallback = true
config.assets.resolve_assets_in_css_urls = true
config.active_job.queue_adapter = :good_job

FileUtils.mkdir_p(Rails.root.join('log'))
Expand Down

0 comments on commit eabb79f

Please sign in to comment.