From 443dfa09beaaed0d04dc0edcec312dfd7f03dc05 Mon Sep 17 00:00:00 2001 From: vben Date: Thu, 27 Jan 2022 14:07:16 +0800 Subject: [PATCH] feat: release 3.0.0-beta.4 --- packages/core/package.json | 4 ++-- packages/core/src/htmlPlugin.ts | 4 ++-- pnpm-lock.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index fcb903c..4ed571a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-html", - "version": "3.0.0-beta.3", + "version": "3.0.0-beta.4", "description": "A plugin for vite to Minimize index.html and use lodash.template template syntax in index.html", "main": "dist/index.cjs", "module": "dist/index.mjs", @@ -42,7 +42,7 @@ "homepage": "https://github.com/vbenjs/vite-plugin-html/tree/master/#readme", "dependencies": { "@rollup/pluginutils": "^4.1.2", - "chalk": "^5.0.0", + "colorette": "^2.0.16", "consola": "^2.15.3", "dotenv": "^14.3.2", "dotenv-expand": "^6.0.1", diff --git a/packages/core/src/htmlPlugin.ts b/packages/core/src/htmlPlugin.ts index 534d7f7..77b0dea 100644 --- a/packages/core/src/htmlPlugin.ts +++ b/packages/core/src/htmlPlugin.ts @@ -9,7 +9,7 @@ import { existsSync, readFile, move, remove } from 'fs-extra' import { resolve, dirname, basename } from 'pathe' import fg from 'fast-glob' import consola from 'consola' -import chalk from 'chalk' +import { dim } from 'colorette' const DEFAULT_TEMPLATE = 'index.html' const ignoreDirs = ['.', '', '/'] @@ -225,7 +225,7 @@ export function removeEntryScript(html: string) { item.parentNode.removeChild(item) }) removedNode.length && - consola.warn(`vite-plugin-html: Since you have already configured entry, ${chalk.dim( + consola.warn(`vite-plugin-html: Since you have already configured entry, ${dim( removedNode.toString(), )} is deleted. You may also delete it from the index.html. `) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84ae277..7f54cac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ importers: '@types/fs-extra': ^9.0.13 '@types/html-minifier-terser': ^6.1.0 '@types/node': ^17.0.12 - chalk: ^5.0.0 + colorette: ^2.0.16 consola: ^2.15.3 dotenv: ^14.3.2 dotenv-expand: ^6.0.1 @@ -77,7 +77,7 @@ importers: vite: ^2.7.13 dependencies: '@rollup/pluginutils': 4.1.2 - chalk: 5.0.0 + colorette: 2.0.16 consola: 2.15.3 dotenv: 14.3.2 dotenv-expand: 6.0.1 @@ -1355,6 +1355,7 @@ packages: integrity: sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==, } engines: { node: ^12.17.0 || ^14.13 || >=16.0.0 } + dev: true /chardet/0.7.0: resolution: @@ -1493,7 +1494,6 @@ packages: { integrity: sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==, } - dev: true /commander/2.20.3: resolution: