UNPKG

@modular-css/processor

Version:

A streamlined reinterpretation of CSS Modules

9 lines (6 loc) 252 B
"use strict"; const path = require("path"); const sepRegex = /\\/g; // Get a relative version of an absolute path w/ cross-platform/URL-friendly // directory separators module.exports = (cwd, file) => path.relative(cwd, file).replace(sepRegex, "/");