MCPcopy
hub / github.com/DevCloudFE/ng-devui / getThemeDefinition

Function getThemeDefinition

scripts/themeable/custom-theme-webpack-loader.js:84–90  ·  view source on GitHub ↗

* 获取主题数据 * @param {*} fileContent 文件内容 * @param {*} fileType json | string

(fileContent, fileType)

Source from the content-addressed store, hash-verified

82 * @param {*} fileType json | string
83 */
84function getThemeDefinition(fileContent, fileType) {
85 if (fileType === 'string') {
86 return JSON.parse(fileContent);
87 } else {
88 return fileContent;
89 }
90}
91/**
92 *
93 * @param {*} css css文本内容

Callers 1

processFunction · 0.85

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected