vuepress-plugin-helper-live2d
Version:
VuePress集成Live2D看板娘. Live2D plugin for VuePress.
12 lines (10 loc) • 449 B
JavaScript
// 控制台颜色插件
const chalk = require('chalk')
// 默认插件配置
const defaultPluginConfig = require("./default_plugin_config");
// color取值:red、green、yellow、blue...等
module.exports = function helper_live2d_log(msg, color = 'blue', label = defaultPluginConfig.pluginName) {
// if (defaultPluginConfig.log) {
console.log && console.log(`\n${chalk.reset.inverse.bold[color](` ${label} `)} ${msg}`)
// }
}