Skip to content

Instantly share code, notes, and snippets.

@Lax

Lax/vue.config.js

Last active Jun 23, 2019
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
You can’t perform that action at this time.