Socket
Book a DemoInstallSign in
Socket

gatsby-plugin-css-modules-emoji

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-css-modules-emoji

The Gatsby Plugin that replace CSS Modules Class selectors by Emojis

latest
Source
npmnpm
Version
1.0.14
Version published
Weekly downloads
2
-60%
Maintainers
3
Weekly downloads
 
Created
Source

gatsby-plugin-css-modules-emoji

Replace CSS Modules Class selectors by Emojis.

emoji selectors

⚠️ Applies only while using CSS Modules.

The plugin will create a unique emoji combination for each CSS selector. Compatible with Official Gatsby Sass/Scss and Less plugins.

Install

npm install --save gatsby-plugin-css-modules-emoji

How to use

Add plugin to the end of your gatsby-config.js file. If you're using Sass/Scss or Less plugin be sure that this plugin comes after them.

module.exports = {
  plugins: [
    `gatsby-plugin-css-modules-emoji`
  ],
}

If you want to configure the plugin, take a look at available options below:

⚠️ Any changes require the server be restarted.

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-css-modules-emoji`,
      options: {
        enableOnDevelopment: true, 
        selectorLength: 7, // min selector length is 3 emojis
      },
    },
  ],
}

Options

  • enableOnDevelopment - allows you to disable Emoji selectors while in develop mode. The default value is true.

  • selectorLength - define selector length. The default and minimum required length is 3 emojis.

Browser support

Some of emojis filtered due to Chrome support. Were excluded:

  • Emojis that includes ZWJ (What does ZWJ stand for?)
  • Flags
  • Letter symbols
  • Other emojis that displayed incorrectly in Chrome DevTools

Keywords

gatsby

FAQs

Package last updated on 27 Jul 2021

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