Skip to content

Instantly share code, notes, and snippets.

@realStandal
Created September 20, 2021 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realStandal/7b334b539170951f04f090781e1132de to your computer and use it in GitHub Desktop.
Save realStandal/7b334b539170951f04f090781e1132de to your computer and use it in GitHub Desktop.
RedwoodJS - Alter built web-side resources to have a prepended path (not `/`)
// This file should be placed in web/config/webpack.config.js
module.exports = (config, { mode }) => {
const isDev = mode === 'development'
config.output.publicPath = isDev ? '/' : '/cerberus'
return config
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment