Fourth-assignment-vue/node_modules/generic-names
hezi66677 d61153663c 前端 2024-11-08 11:03:26 +08:00
..
.idea 前端 2024-11-08 11:03:26 +08:00
LICENSE 前端 2024-11-08 11:03:26 +08:00
generic-names.iml 前端 2024-11-08 11:03:26 +08:00
index.d.ts 前端 2024-11-08 11:03:26 +08:00
index.js 前端 2024-11-08 11:03:26 +08:00
package.json 前端 2024-11-08 11:03:26 +08:00
readme.md 前端 2024-11-08 11:03:26 +08:00

readme.md

generic-names

Helper for building generic names, similar to webpack. Designed to be used with postcssmodulesscope.

Uses interpolateName from the webpack/loader-utils.

API

var genericNames = require('generic-names');
var generate = genericNames('[name]__[local]___[hash:base64:5]', {
  context: process.cwd()
});

generate('foo', '/case/source.css'); // 'source__foo___3mRq8'