javaee_vue3/node_modules/generic-names
JUZIZZZ b4dffc733c 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
..
.idea 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
LICENSE 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
generic-names.iml 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
index.d.ts 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
index.js 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
package.json 第四次作业,前端代码 2024-11-05 22:42:26 +08:00
readme.md 第四次作业,前端代码 2024-11-05 22:42: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'