electron-webpack

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发、 常用JavaScript包
软件类型 开源软件
地区 不详
投 递 者 陈富
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

electron-webpack

Project Status: maintenance mode. Consider using Vite instead of Webpack.

Because setting up webpack in the electron environment shouldn't be difficult.

Maintainer Needed

This project is looking for active maintainers. Feel free to post here.

Overview

Modern web development practices today require a lot of setup with things like webpack to bundle your code, babel for transpiling, eslint for linting, and so much more that the list just goes on. Unfortunately when creating electron applications, all of that setup just became much more difficult. The primary aim of electron-webpack is to eliminate all preliminary setup with one simple install so you can get back to developing your application.

Why create a module and not a full boilerplate?

If you've been in the JavaScript world for even a short period of time, you are very aware that things are always changing, and development setup is no exclusion. Putting all development scripts into a single updatable module just makes sense. Sure a full featured boilerplate works too, but doing also involves needing to manually update those pesky webpack configuration files that some may call magic when something new comes out.

Here are some of the awesome features you'll find using electron-webpack...

Quick Start

Get started fast with electron-webpack-quick-start.

# create a directory of your choice, and copy template using curl
mkdir my-project && cd my-project
curl -fsSL https://github.com/electron-userland/electron-webpack-quick-start/archive/master.tar.gz | tar -xz --strip-components 1

# or copy template using git clone
git clone https://github.com/electron-userland/electron-webpack-quick-start.git
cd electron-webpack-quick-start
rm -rf .git

# install dependencies
yarn

If you already have an existing project, or are looking for a custom approach outside of the quick start template, make sure to read over the Core Concepts, Project Structure, and Development sections of electron-webpack's documentation.

Next Steps

Make sure to take advantage of the detailed documentation that electron-webpack provides. It covers everything from how things work internally, adding custom configurations, and building your application.

Contributing

Feel free to grab an issue and fix it or to share your features and improvements - PRs are always welcome!
However, in order for your contribution to be property included in the automatically generated release notes, please use our standard format for your commit messages.

  • 项目需要在electron的项目中新打开一个窗口,利用webpack作为静态资源打包器,发现在webpack中可以设置多页面的入口,今天来讲一下我在electron中利用webpack建立多页面入口的踩坑经验。 1、webpack的核心概念 •Entry:入口,Webpack执行构建的第一步从Entry开始; •Module:模块,在Webpack里一切皆模块,一个模块对应着一个文件。Webpac

  • webpack打包时自动去除console.log——terser/terser-webpack-plugin terser 由于老牌工具uglify不支持es6,且uglify-es不再更新,我们选择terser作为js代码压缩工具。 # 全局安装terser命令行工具 npm install -g terser # 使用terser terser ./foo.js -c pure_funcs=

  • yarn run v1.22.10 $ electron-webpack dev ┏ Renderer ------------------- AttachConsole failed with error 6: �����Ч�� ┗ ---------------------------- 该问题请移步 https://github.com/electron-userland/elec

  • 记录一下Electron + React开发环境的Webpack配置过程,因为我本身很喜欢React,所以当日要用React来开发Electron啦,也写给需要的小伙伴们。 介绍 其实用想用React来开发Electron应用很简单,Electron启动其实就是依赖于浏览器去load一个html,所以其实最主要的就是配置一个React的开发环境,那它load完之后自然就能热更新了,然后注意一下环境

 相关资料
  • Electron Electron / Electron Documentation Electron github / Electron github docs zh-CN Electron 是什么 Electron 是一个能让你通过 JavaScript、 HTML 和 CSS 构建桌面应用的库 。这些应用能打包到 Mac 、 Windows 和 Linux 电脑上运行,当然它们也能上架到 M

  • Electron 是一个使用 JavaScript、HTML 和 CSS 构建跨平台的桌面应用程序。它基于 Node.js 和 Chromium,被 Atom 编辑器和许多其他应用程序使用。 Electron 兼容 Mac、Windows 和 Linux,可以构建出三个平台的应用程序。

  • electron-webpack-dashboard Electron Desktop GUI for Webpack Dashboard Whats this all about? The original webpack-dashboard, was fun and people seemed to like it. Unless they were on Windows, or used a

  • Package time feature toggles What are fuses? For a subset of Electron functionality it makes sense to disable certain features for an entire application. For example, 99% of apps don't make use of ELE

  • electron-vue 是一个基于 vue 来构造 electron 应用程序的样板代码。 概要 该项目的目的,是为了要避免使用 vue 手动建立起 electron 应用程序。electron-vue 充分利用 vue-cli 作为脚手架工具,加上拥有 vue-loader 的 webpack、electron-packager 或是 electron-builder,以及一些最常用的插件,如

  • 基于 Electron 桌面开发平台的自研应用框架 Sugar-Electron,期望能改善 Electron 应用稳定性和帮助开发团队降低开发和维护成本。 关于应用稳定性 Electron应用程序有三大基础模块: 主进程 渲染进程 进程间通信 由于我们属于多窗口(多渲染进程)的应用,所以我们会把窗口公共的服务模块都写到主进程模块,这为整个程序的稳定性埋下了隐患。 在Electron中,主进程控制