From 9de85ed364bc964f5a3ed8ebeea099d7764385b8 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 7 Dec 2023 10:45:24 +0000 Subject: [PATCH] Test 2 --- app/frontend/styles/application.scss | 1 + webpack.config.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/frontend/styles/application.scss b/app/frontend/styles/application.scss index ddf368807..5758dfe93 100644 --- a/app/frontend/styles/application.scss +++ b/app/frontend/styles/application.scss @@ -6,6 +6,7 @@ @return url("~assets/images/" + $filename); } +$govuk-assets-path: "/2082/assets/"; $govuk-font-url-function: frontend-font-url; $govuk-image-url-function: frontend-image-url; $govuk-global-styles: true; diff --git a/webpack.config.js b/webpack.config.js index fa062a66f..597886870 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,6 @@ const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts') const CopyPlugin = require('copy-webpack-plugin') const mode = process.env.NODE_ENV === 'development' ? 'development' : 'production' -const publicPath = '2082/' // process.env.RAILS_RELATIVE_URL_ROOT ?? '' module.exports = { mode, @@ -49,7 +48,7 @@ module.exports = { filename: '[name].js', // we must set publicPath to an empty value to override the default of // auto which doesn't work in IE11 - publicPath: publicPath, + publicPath: '', path: path.resolve(__dirname, 'app/assets/builds') }, plugins: [