New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-modules-electron

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-modules-electron

A require hook to compile and use CSS modules in Electron.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

css-modules-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.

Usage

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

  • postcss version 4 or higher
  • postcss-modules-extract-imports
  • postcss-modules-local-by-default
  • postcss-modules-scope

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.

Running the Example

npm i
npm start

Keywords

FAQs

Package last updated on 26 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc