Browse Source

Test 2

ReviewAppsAssets
Rachael Booth 1 year ago
parent
commit
9de85ed364
  1. 1
      app/frontend/styles/application.scss
  2. 3
      webpack.config.js

1
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;

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

Loading…
Cancel
Save