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: [