- Add npm scripts for CSS/JS compilation (build:css, build:js, build) - Create PowerShell build automation script - Document development workflow in README - Add troubleshooting guide for build issues - Specify proper file structure and compilation process Supports Tailwind CSS v3.4.0 and esbuild bundling with source maps.
9 lines
255 B
JavaScript
9 lines
255 B
JavaScript
import parser from 'postcss-selector-parser'
|
|
import escapeCommas from './escapeCommas'
|
|
|
|
export default function escapeClassName(className) {
|
|
let node = parser.className()
|
|
node.value = className
|
|
return escapeCommas(node?.raws?.value ?? node.value)
|
|
}
|