🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Deps Tests Coverage Standard Code Style Chat

Install

npm i -S electron-posthtml

Usage

This modules intercepts the file:// Protocol using Electrons Protocol API. All HTML files will automatically processed by PostHTML.

'use strict'

import { app, BrowserWindow } from 'electron'
import posthtml from 'electron-posthtml'

// Use PostHTML
posthtml([/* Plugins */])

app.on('ready', () => {
  const view = new BrowserWindow({ width: 800, height: 600 })

  view.loadUrl(`file://${__dirname}/index.html`)
})

Maintainers


Michael Ciniawsky

Contributing

See PostHTML Guidelines and contribution guide.

LICENSE

MIT

About

PostHTML for Electron

Resources

Contributing

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages