Skip to content

Instantly share code, notes, and snippets.

@richjenks
Created November 29, 2019 14:56
Show Gist options
  • Save richjenks/7352093dd506db14853aa6e5f2c7919b to your computer and use it in GitHub Desktop.
Save richjenks/7352093dd506db14853aa6e5f2c7919b to your computer and use it in GitHub Desktop.
Serve a Vue project in a subdirectory based on environment
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/dist/' : '/'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment