question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: set character range

See original GitHub issue

It would be could if there would be an option to set the unicode range which will be used to generate class names. I would love to see some emojis in my source code. It does look quite funny and will save a lot of bytes over the wire.

Either use a range or specify them via array

Options:

require(postcss-modules)({
  unicodes: "1F601-1F567"
});

Input:

<div class="container">…</div>

.container { … }

Output:

<div class="💩">…</div>

.💩  { … }

Any plans on doing something like that?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
madyankincommented, May 27, 2016

@marcobiedermann I’ve just published a new version. Now you can pass a string to generateScopedName like so:

postcss([
  require('postcss-modules')({ generateScopedName: '[emoji]' });
]);
0reactions
madyankincommented, May 28, 2016

We need to fix css-selector-tokenizer first. It’s being used in the CSS Modules core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API to select character range of QuickPick input text value
Currently there seem to be two text selection modes for QuickPick values: If quickPick.value is set before quickPick.show() is called, ...
Read more >
unicode-range - CSS: Cascading Style Sheets - MDN Web Docs
The unicode-range CSS descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for ......
Read more >
TMP custom character list parsing variety of formats
Feature request : TMP custom character list parsing variety of formats.
Read more >
Supplementary Characters in the Java Platform - Oracle
A coded character set defines a range of valid code points, ... lead for Java Specification Request 204, Unicode Supplementary Character Support.
Read more >
Collation and Unicode support - SQL Server - Microsoft Learn
For non-Unicode columns, the collation setting specifies the code page for the data and which characters can be represented.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found