4. The easy way to create a project - You can create the project more easy than before by using boillerplate. npx create-electron-app project-name npx create-react-app project-name - This method involves adding Electron to a React project 1. Type command npx create-react-app project-name npm start npm add --dev electron 2.Modifying the package.json file { "name": "project-name", "version": "0.1.0", "private": true, "main": "src/ma.. 2023. 12. 31. 3. Adding webpack-package and practice 1. Adding the webpack-package npm install --save-dev @babel/core @babel/preset-env @babel/preset-react babel-loader css-loader style-loader sass-loader sass webpack webpack-cli 2. Make 'webpack.common.js' in root directory and write through following code (through visual code) code webpack.common.js const path = require('path'); module.exports = { mode: 'development', entry: './src/js/main.js', .. 2023. 12. 31. 이전 1 다음