antd4-theme-vars
Version:
Generate different theme files for antd@4.x
42 lines (40 loc) • 1.65 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/constants.ts
var constants_exports = {};
__export(constants_exports, {
CONFIG_FILES: () => CONFIG_FILES,
DEFAULT_ANTD_LESS_LOOKING_PATH: () => DEFAULT_ANTD_LESS_LOOKING_PATH,
DEFAULT_ANTD_LESS_PATH: () => DEFAULT_ANTD_LESS_PATH,
DEFAULT_ANT_PREFIX: () => DEFAULT_ANT_PREFIX,
DEFAULT_OUTPUT_DIR: () => DEFAULT_OUTPUT_DIR
});
module.exports = __toCommonJS(constants_exports);
var CONFIG_FILES = [".antd4tvrc.cjs"];
var DEFAULT_OUTPUT_DIR = "node_modules/antd4-theme-vars/themes";
var DEFAULT_ANT_PREFIX = "ant";
var DEFAULT_ANTD_LESS_PATH = "node_modules/antd/dist/antd.less";
var DEFAULT_ANTD_LESS_LOOKING_PATH = "node_modules/antd/lib";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
CONFIG_FILES,
DEFAULT_ANTD_LESS_LOOKING_PATH,
DEFAULT_ANTD_LESS_PATH,
DEFAULT_ANT_PREFIX,
DEFAULT_OUTPUT_DIR
});