Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

electron-compile 2.0

Latest
Compare
Choose a tag to compare
@anaisbetts anaisbetts released this 04 Jan 06:19
· 335 commits to master since this release

What's New

electron-prebuilt-compile npm module

electron-compile is now bundled with a version of electron-prebuilt that sets up electron-compile automatically. Learn more at https://github.com/paulcbetts/electron-prebuilt-compile.

Performance Performance Performance

electron-compile now reads much less data from disk than it did in 1.0 - in production mode it now should be slightly faster than precompiled files due to GZip compression. The entire compilation infrastructure has also been rewritten to use async methods, which should drastically improve performance when including complex HTML and CSS content.

Support for HTML precompilers including Jade (#45)

electron-compile now has the infrastructure to support HTML precompilers such as HAML and Jade, and ships with Jade enabled in-box.

Simplified Configuration (#47)

electron-compile 1.x was frustrating to configure in any non-default configuration - we now support a .compilerc file which allows developers to configure compiler-specific settings:

{
  "application/javascript": {
    "presets": ["stage-0", "es2015", "react"],
    "sourceMaps": "inline"
  },
  "text/less": {
    "dumpLineNumbers": "comments"
  }
}

Debuggability

electron-compile v2.0 now uses the debug module, so discovering what happened when things go wrong is now much easier:

## Debug just electron-compile
DEBUG=electron-compile:* npm start

## Grab everything except for Babel which is very noisy
DEBUG=*,-babel npm start