Angular Projects by Aristeidis Bampakos

Angular Projects by Aristeidis Bampakos

Author:Aristeidis Bampakos
Language: eng
Format: epub
Tags: COM051280 - COMPUTERS / Programming Languages / Java, COM051260 - COMPUTERS / Programming Languages / JavaScript, COM060160 - COMPUTERS / Web / Web Programming
Publisher: Packt
Published: 2023-07-11T09:07:18+00:00


Create a package.json file in the src\electron folder and add the following content: { "name": "my-editor", "main": "main.js" }

The electron-packager library requires a package.json file to be present in the output folder, which points to the main entry file of the Electron application.

Open the webpack.prod.config.js file and add the CopyWebpackPlugin in the plugins property: const path = require('path'); const baseConfig = require('./webpack.config'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { ...baseConfig, output: { path: path.join(process.cwd(), 'dist', 'my-editor'), filename: 'main.js' }, plugins: [ new CopyWebpackPlugin({ patterns: [ { context: path.join(process.cwd(), 'src', 'electron'), from: 'package.json' } ] }) ] };



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.