Created
April 24, 2018 22:39
-
-
Save mikeal/a385716411fa82e9bc5d87c6e10e604c to your computer and use it in GitHub Desktop.
Vue config file for Electron demo.
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
module.exports = { | |
configureWebpack: config => { | |
if (process.env.NODE_ENV === 'production') { | |
config.output.publicPath = `${process.cwd()}/dist/` | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can "config.output.publicPath" be replaced with "baseUrl"? I made this change because I was getting an error message when trying to run this.