Last active
June 23, 2019 09:47
-
-
Save Lax/2778572efa14297b8de6575a3fd7972d to your computer and use it in GitHub Desktop.
vue.config.js for Vue+Electron App https://liulantao.com/electron-vuejs.html
This file contains hidden or 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
const path = require("path"); | |
module.exports = { | |
pages: { | |
index: "src/renderer/main.js" | |
}, | |
chainWebpack: config => { | |
config.resolve.alias.set("@", path.resolve(__dirname, "src/renderer/")); | |
config.resolve.alias.set( | |
"@components", | |
path.resolve(__dirname, "src/renderer/components/") | |
); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment