0.0.3 • Published 2 years ago

vite-plugin-print-info v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-print-info

npm downloads Unit Test

print some help info like vite builtin.

effect

Installation

npm i -D vite-plugin-print-info

Usage

// vite.config.ts
import vitePluginPrintInfo from 'vite-plugin-print-info';

export default defineConfig({
  plugins: [
    vitePluginPrintInfo({
      infoList: [
        {
          name: 'APP_ENV',
          message: APP_ENV,
          messageStyle: {
            color: 'yellow',
            bold: true,
          },
        },
        {
          name: 'Recommend',
          message: 'https://abc.com/test-page?debug=1',
        },
      ],
    }),
  ],
});

License

MIT License © 2023-PRESENT YuTengjing

0.0.3

2 years ago

0.0.1

2 years ago