Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Herlon Aguiar herlon214

🚀
View GitHub Profile
@herlon214
herlon214 / next.config.js
Created Jul 3, 2022
NextJS 12 Hash Class Names
View next.config.js
const path = require('path')
const loaderUtils = require('loader-utils')
const hashOnlyIdent = (context, _, exportName) => {
const result = loaderUtils
.getHashDigest(
Buffer.from(
`filePath:${path
.relative(context.rootContext, context.resourcePath)
.replace(/\\+/g, '/')}#className:${exportName}`
@herlon214
herlon214 / .zoxide.nu
Created Mar 31, 2022
Zoxide Script for Nushell
View .zoxide.nu
# Code generated by zoxide. DO NOT EDIT.
# =============================================================================
#
# Utility functions for zoxide.
#
# Default prompt for Nushell.
def __zoxide_prompt [] {
# if gstat plugin is installed could do `gstat | get branch`