Skip to content

Instantly share code, notes, and snippets.

@Lax
Last active June 23, 2019 09:47
Show Gist options
  • Save Lax/2778572efa14297b8de6575a3fd7972d to your computer and use it in GitHub Desktop.
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