A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/KenPowers/css-modules-electron below:

knpwrs/css-modules-electron: A require hook to compile and use CSS modules in Electron.

Load CSS Modules in Electron. Once registered, you can require CSS modules and they will automatically be compiled and injected into the head element of your Electron app.

This module has the same requirements as css-modules-require-hook. That means you must have the following modules installed:

You can register the hook in Electron by requiring the register module:

require('css-modules-electron/register');

You can also specify options using the same API as css-modules-require-hook by requiring the core module directly:

require('css-modules-electron')({
  // `css-modules-require-hook` options here
});

See example/src/front.js for a working example.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4