Package Exports
- electron-css-injector
- electron-css-injector/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (electron-css-injector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
electron-css-injector
Inject css in your electron app.
How to use
Install the package in your project with
yarn add electron-css-injectorornpm install electron-css-injectorIn your preload script add:
import { injectCSS } from "electron-css-injector"
window.addEventListener("DOMContentLoaded", () => {
injectCSS("path/to/archive.css")
})