Created
September 20, 2021 05:03
-
-
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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