Skip to content

Instantly share code, notes, and snippets.

@Lax
Last active June 23, 2019 09:47
Embed
What would you like to do?
vue.config.js for Vue+Electron App https://liulantao.com/electron-vuejs.html
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