Giter Site home page Giter Site logo

eneiasramos / electron-bytenode-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spaceagetv/electron-bytenode-example

0.0 1.0 0.0 3.12 MB

A basic Hello World boilerplate using Webpack to convert Electron Javascript code to binary using Bytenode and the Bytenode Webpack Plugin

JavaScript 35.27% HTML 12.51% TypeScript 44.56% CSS 7.67%

electron-bytenode-example's Introduction

electron-bytenode-example

Example code using Bytenode + Bytenode Webpack Plugin to compile both the render and main processes in an Electron app.

At the command line:

git clone https://github.com/spaceagetv/electron-bytenode-example.git
cd electron-bytenode-example
npm install
npm start

This example uses Herbert Treis Neto's Bytenode Webpack Plugin along with Webpack and Electron Forge to bundle and package the application.

Electron gets pointed at small "loader" files which bundle Bytenode in order to load the binary .jsc files containing the original application code.

NOTE! You must enable nodeIntegration in your BrowserWindow webPreferences for Bytenode to work in the rendering process. Alternately, you could include your rendering code using a preload script, where Node will be available automatically.

electron-bytenode-example's People

Contributors

jjeff avatar herberttn avatar dopry avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.