Skip to content

Instantly share code, notes, and snippets.

@Lax
Last active June 23, 2019 09:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
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