Sha256: 95119c7c6b28ba56163b8c027b5dd99e5e93e3abc4e25c4f978f572bc276de8e

Contents?: true

Size: 1.58 KB

Versions: 4

Compression:

Stored size: 1.58 KB

Contents

return unless Rails.application.config.respond_to?(:assets)

Rails.application.config.assets.precompile += %w(
  component_guide/accessibility-test.js
  component_guide/application.js
  component_guide/filter-components.js
  component_guide/visual-regression.js
  govuk_publishing_components/all_components.js
  govuk_publishing_components/vendor/modernizr.js
  govuk_publishing_components/component_guide.css
  govuk_publishing_components/search-button.png
  govuk_publishing_components/favicon-development.png
  govuk_publishing_components/favicon-integration.png
  govuk_publishing_components/favicon-example.png
  govuk_publishing_components/favicon-production.png
  govuk_publishing_components/favicon-staging.png
  govuk_publishing_components/favicon-test.png
  govuk_publishing_components/feed-icon-black.png
  govuk_publishing_components/mail-icon-x2.png
  govuk_publishing_components/mail-icon.png
  govuk_publishing_components/icon-pointer.png
  govuk_publishing_components/icon-pointer-2x.png
  govuk_publishing_components/govuk-logo.png
  govuk_publishing_components/govuk-schema-placeholder-1x1.png
  govuk_publishing_components/govuk-schema-placeholder-4x3.png
  govuk_publishing_components/govuk-schema-placeholder-16x9.png
)

# Add GOV.Frontend assets

Rails.application.config.assets.precompile += %w(
  accessible-autocomplete/dist/accessible-autocomplete.min.css
  govuk-logotype-crown.png
)

Rails.application.config.assets.paths += %W(
  #{__dir__}/../../node_modules/govuk-frontend/assets/images
  #{__dir__}/../../node_modules/govuk-frontend/assets/fonts
  #{__dir__}/../../node_modules/
)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-17.21.0 config/initializers/assets.rb
govuk_publishing_components-17.20.0 config/initializers/assets.rb
govuk_publishing_components-17.19.1 config/initializers/assets.rb
govuk_publishing_components-17.19.0 config/initializers/assets.rb