hof 23.0.0-frontend-v4-beta.3 → 23.0.0-frontend-v4-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
  'use strict';
2
+ const toolkitImages =
3
+ process.env.HOF_SANDBOX === 'true'
4
+ ? '../frontend/toolkit/assets/rebrand/images'
5
+ : 'node_modules/hof/frontend/toolkit/assets/rebrand/images';
2
6
 
3
7
  module.exports = {
4
8
  browserify: {
@@ -24,9 +28,9 @@ module.exports = {
24
28
  shared: 'apps/common/translations/src'
25
29
  },
26
30
  images: {
27
- src: ['assets/rebrand/images', '../frontend/toolkit/assets/rebrand/images' ],
31
+ src: ['assets/rebrand/images', toolkitImages],
28
32
  out: 'public',
29
- match: ['assets/rebrand/images/**/*', '../frontend/toolkit/assets/rebrand/images/**/*'],
33
+ match: ['assets/rebrand/images/**/*', `${toolkitImages}/**/*`],
30
34
  restart: false
31
35
  },
32
36
  server: {
package/index.js CHANGED
@@ -239,7 +239,7 @@ function bootstrap(options) {
239
239
  }
240
240
 
241
241
  // Set up routing so <YOUR-SITE-URL>/assets are served from /node_modules/govuk-frontend/govuk/assets
242
- app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/govuk/assets')));
242
+ app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/govuk/assets/rebrand')));
243
243
  // Check if service has been paused and redirect accordingly
244
244
  const bypassPaths = ['/assets', '/healthcheck', '/service-unavailable'];
245
245
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.0-frontend-v4-beta.3",
4
+ "version": "23.0.0-frontend-v4-beta.5",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",