Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created April 24, 2018 22:39
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 mikeal/a385716411fa82e9bc5d87c6e10e604c to your computer and use it in GitHub Desktop.
Save mikeal/a385716411fa82e9bc5d87c6e10e604c to your computer and use it in GitHub Desktop.
Vue config file for Electron demo.
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.output.publicPath = `${process.cwd()}/dist/`
}
}
}
@GuidoS
Copy link

GuidoS commented Oct 16, 2018

can "config.output.publicPath" be replaced with "baseUrl"? I made this change because I was getting an error message when trying to run this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment