How to access remote data and write it into a file during Nuxt build?

You can start by installing axios (you can still have @nuxtjs/axios alongside your project): yarn add -D axios Then, let’s take JSON placeholder’s API for testing purposes, we will try to get the content located here: https://jsonplaceholder.typicode.com/todos/1 And save it to a local .json file in our Nuxt project. For that, head towards nuxt.config.js and … Read more

How to import ipcRenderer in vue.js ? __dirname is not defined

Updated Answer – Nodeintegration disabled and contextIsolation enabled In order to use the ipcRenderer with Vue CLI plugin Electron Builder you need to first setup electron to utilize a preload.js file. Inside your vue.config.js file you need to add the preload.js path like this: // vue.config.js – project root module.exports = { pluginOptions: { electronBuilder: … Read more