Skip to content

Commit

Permalink
Update GOV.UK Frontend assets path
Browse files Browse the repository at this point in the history
There's now a dist directory.
  • Loading branch information
thomasleese committed Feb 27, 2024
1 parent ffc9a7e commit 7df2561
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.sass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $govuk-new-link-styles: true;
$govuk-assets-path: "/";
$moj-images-path: "/";

@import "govuk-frontend/govuk/all";
@import "govuk-frontend/dist/govuk/all";
@import "@ministryofjustice/frontend/moj/components/ticket-panel/ticket-panel";
@import "@ministryofjustice/frontend/moj/components/timeline/timeline";
@import "dfe-autocomplete/src/dfe-autocomplete";
Expand Down
9 changes: 6 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ class Application < Rails::Application

config.exceptions_app = routes

config.assets.paths << Rails.root.join(
"node_modules/govuk-frontend/govuk/assets",
)
config.assets.paths +=
%w[
node_modules/govuk-frontend/dist/govuk/assets
node_modules/govuk-frontend/dist/govuk/assets/images
node_modules/govuk-frontend/dist/govuk/assets/fonts
].map { |path| Rails.root.join(path) }

config.action_dispatch.rescue_responses[
"Pundit::NotAuthorizedError"
Expand Down

0 comments on commit 7df2561

Please sign in to comment.